mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
remoce sudo su
! [YEP-2.12] You should not need to use 'sudo', the script is being run as root. (If you need to run a command using a specific user, use 'ynh_exec_as')
This commit is contained in:
parent
c3530d5fa7
commit
ab152adffe
2 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ then
|
|||
ynh_store_file_checksum --file="/etc/nginx/conf.d/$app-cache.conf"
|
||||
ynh_replace_string --match_string="{APP}" --replace_string="$app" --target_file="../conf/media.conf"
|
||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/media.conf"
|
||||
sudo su -c "cat ../conf/media.conf >> /etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
cat ../conf/media.conf >> /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
ynh_store_file_checksum --file="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
fi
|
||||
|
||||
|
|
|
@ -208,7 +208,7 @@ then
|
|||
ynh_store_file_checksum --file="/etc/nginx/conf.d/$app-cache.conf"
|
||||
ynh_replace_string --match_string="{APP}" --replace_string="$app" --target_file="../conf/media.conf"
|
||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/media.conf"
|
||||
sudo su -c "cat ../conf/media.conf >> /etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
cat ../conf/media.conf >> /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
ynh_store_file_checksum --file="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue