/usr/local/libexec

This commit is contained in:
Matthew Saunders Brown 2021-04-22 13:16:49 -07:00
parent 121bf571af
commit 6d35652773
2 changed files with 11 additions and 8 deletions

View File

@ -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

View File

@ -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