mirror of
https://github.com/YunoHost-Apps/emailpoubelle_ynh.git
synced 2024-09-03 18:26:29 +02:00
Correct /etc/aliases validation
This commit is contained in:
parent
1a582e5d53
commit
c3fd530466
1 changed files with 1 additions and 2 deletions
|
@ -97,7 +97,7 @@ ynh_restore_file "/usr/share/yunohost/hooks/conf_regen/98-postfix_emailpoubelle"
|
||||||
yunohost service regen-conf postfix
|
yunohost service regen-conf postfix
|
||||||
|
|
||||||
#create an alias for deleted junk adresses
|
#create an alias for deleted junk adresses
|
||||||
if ! [ grep "devnull:/dev/null" /etc/aliases ] ; then
|
if ! grep -q "devnull:/dev/null" /etc/aliases ; then
|
||||||
cp /etc/aliases /etc/aliases.emailpoubelle.bak #backup it
|
cp /etc/aliases /etc/aliases.emailpoubelle.bak #backup it
|
||||||
echo "devnull:/dev/null" | tee -a /etc/aliases
|
echo "devnull:/dev/null" | tee -a /etc/aliases
|
||||||
newaliases
|
newaliases
|
||||||
|
@ -108,7 +108,6 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reinstall cron job" --time --weight=1
|
ynh_script_progression --message="Reinstall cron job" --time --weight=1
|
||||||
|
|
||||||
|
|
||||||
ynh_restore_file "/etc/cron.d/$app"
|
ynh_restore_file "/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue