mirror of
https://github.com/YunoHost-Apps/privatebin_ynh.git
synced 2024-09-03 20:15:56 +02:00
Fix permission on nginx conf
This commit is contained in:
parent
d97a1d99be
commit
4ea3515fbb
1 changed files with 5 additions and 2 deletions
|
@ -28,8 +28,11 @@ sudo chmod 700 $final_path/{data,tmp}
|
|||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf
|
||||
sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx.conf
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/zerobin.conf
|
||||
sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx.
|
||||
nginxconf=/etc/nginx/conf.d/$domain.d/zerobin.conf
|
||||
sudo cp ../conf/nginx.conf $nginxconf
|
||||
sudo chown root: $nginxconf
|
||||
sudo chmod 600 $nginxconf
|
||||
|
||||
sudo yunohost app setting zerobin is_public -v "$is_public"
|
||||
if [ $is_public = "Yes" ];
|
||||
|
|
Loading…
Reference in a new issue