mirror of
https://github.com/novatiq/packages.git
synced 2026-07-17 17:23:04 +01:00
0ff1a55891
This commit syncs msmtp-scripts with master as current openwrt-19.07 is broken. Cherry-picks and squashes the following commits from master.6d8cff9amsmtp-scripts: Fix LICENSE informationd163eaeamsmtp-scripts: Overhaul and update like upstream3c15d410msmtp-scripts: Make conn_test default ncb9cc3cf2msmtp-scripts: Fix spool/lock dir permissionsf76408afmsmtp-scripts: Add msmtprc permission docs Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
20 lines
307 B
Bash
20 lines
307 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
|
|
|
START=90
|
|
|
|
boot() {
|
|
if [ ! -d /var/spool/msmtp ]; then
|
|
mkdir -m1777 -p /var/spool/msmtp
|
|
else
|
|
chmod 1777 /var/spool/msmtp
|
|
fi
|
|
|
|
if [ ! -d /var/lock/msmtp ]; then
|
|
mkdir -m1777 -p /var/lock/msmtp
|
|
else
|
|
chmod 1777 /var/spool/msmtp
|
|
fi
|
|
}
|
|
|