1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00

Update issue on quotes and escaping

This commit is contained in:
polytan02 2016-12-22 12:34:28 +00:00
parent dfa5cb52b3
commit a6d9eedb66
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ then
base64);printf "$basicauthuser:{SSHA}$SHA1\n" >> ../sources/htpasswd)
# Modif nginx
sed -i "s|^.*\bauth_basic\b.*$| auth_basic "Private Library";|" ../conf/nginx.conf;
sed -i "s|^.*\bauth_basic\b.*$| auth_basic \"Private Library\";|" ../conf/nginx.conf;
sed -i "s|^.*\bauth_basic_user_file\b.*$| auth_basic_user_file $final_path/htpasswd;|" ../conf/nginx.conf;
else
echo "No basic auth";

View file

@ -40,7 +40,7 @@ then
base64);printf "$basicauthuser:{SSHA}$SHA1\n" >> ../sources/htpasswd)
# Modif nginx
sed -i "s|^.*\bauth_basic\b.*$| auth_basic "Private Library";|" ../conf/nginx.conf;
sed -i "s|^.*\bauth_basic\b.*$| auth_basic \"Private Library\";|" ../conf/nginx.conf;
sed -i "s|^.*\bauth_basic_user_file\b.*$| auth_basic_user_file $final_path/htpasswd;|" ../conf/nginx.conf;
else
echo "No basic auth";