/usr/local/libexec
This commit is contained in:
parent
121bf571af
commit
6d35652773
|
@ -116,9 +116,12 @@ cp -a etc/dovecot/* /etc/dovecot/
|
||||||
chgrp dovecot /etc/dovecot/dovecot-sql.conf.ext
|
chgrp dovecot /etc/dovecot/dovecot-sql.conf.ext
|
||||||
chmod 640 /etc/dovecot/dovecot-sql.conf.ext
|
chmod 640 /etc/dovecot/dovecot-sql.conf.ext
|
||||||
sed -i "s|password=password|password=$VMAILPASS|g" /etc/dovecot/dovecot-sql.conf.ext
|
sed -i "s|password=password|password=$VMAILPASS|g" /etc/dovecot/dovecot-sql.conf.ext
|
||||||
cp libexec/vmail-quota-warning.sh /usr/libexec/
|
if ! [ -d "/usr/local/libexec" ]; then
|
||||||
chmod 750 /usr/libexec/vmail-quota-warning.sh
|
mkdir /usr/local/libexec
|
||||||
chown dovecot:mail /usr/libexec/vmail-quota-warning.sh
|
fi
|
||||||
|
cp libexec/vmail-quota-warning.sh /usr/local/libexec/
|
||||||
|
chmod 750 /usr/local/libexec/vmail-quota-warning.sh
|
||||||
|
chown dovecot:mail /usr/local/libexec/vmail-quota-warning.sh
|
||||||
|
|
||||||
# restart services
|
# restart services
|
||||||
systemctl enable spamassassin
|
systemctl enable spamassassin
|
||||||
|
|
10
update.sh
10
update.sh
|
@ -60,11 +60,11 @@ for etc_config in "${etc_configs_array[@]}"; do
|
||||||
done
|
done
|
||||||
|
|
||||||
# update libexec script
|
# update libexec script
|
||||||
if ! diff -q libexec/vmail-quota-warning.sh /usr/libexec/vmail-quota-warning.sh ; then
|
if ! diff -q libexec/vmail-quota-warning.sh /usr/local/libexec/vmail-quota-warning.sh ; then
|
||||||
cp libexec/vmail-quota-warning.sh /usr/libexec/vmail-quota-warning.sh
|
cp libexec/vmail-quota-warning.sh /usr/local/libexec/vmail-quota-warning.sh
|
||||||
chmod 750 /usr/libexec/vmail-quota-warning.sh
|
chmod 750 /usr/local/libexec/vmail-quota-warning.sh
|
||||||
chown dovecot:mail /usr/libexec/vmail-quota-warning.sh
|
chown dovecot:mail /usr/local/libexec/vmail-quota-warning.sh
|
||||||
echo "/usr/libexec/vmail-quota-warning.sh updated"
|
echo "/usr/local/libexec/vmail-quota-warning.sh updated"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user