mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] misssing sudo when removing files in /etc/nginx
This commit is contained in:
parent
8196717e96
commit
b20bd7311d
1 changed files with 2 additions and 2 deletions
|
@ -68,12 +68,12 @@ if [ -f /etc/yunohost/installed ]; then
|
|||
| sed 's|.conf||')
|
||||
[[ $domain_list =~ $domain ]] \
|
||||
|| ([[ $(sudo yunohost service saferemove -s nginx $file) == "True" ]] \
|
||||
&& (rm -r /etc/nginx/conf.d/$domain.d || true))
|
||||
&& (sudo rm -r /etc/nginx/conf.d/$domain.d || true))
|
||||
done
|
||||
|
||||
else
|
||||
[ ! -f /etc/nginx/sites-available/default ] \
|
||||
|| rm -f /etc/nginx/sites-enabled/default
|
||||
|| sudo rm -f /etc/nginx/sites-enabled/default
|
||||
need_restart=True
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue