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:
parent
dfa5cb52b3
commit
a6d9eedb66
2 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ then
|
||||||
base64);printf "$basicauthuser:{SSHA}$SHA1\n" >> ../sources/htpasswd)
|
base64);printf "$basicauthuser:{SSHA}$SHA1\n" >> ../sources/htpasswd)
|
||||||
|
|
||||||
# Modif nginx
|
# 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;
|
sed -i "s|^.*\bauth_basic_user_file\b.*$| auth_basic_user_file $final_path/htpasswd;|" ../conf/nginx.conf;
|
||||||
else
|
else
|
||||||
echo "No basic auth";
|
echo "No basic auth";
|
||||||
|
|
|
@ -40,7 +40,7 @@ then
|
||||||
base64);printf "$basicauthuser:{SSHA}$SHA1\n" >> ../sources/htpasswd)
|
base64);printf "$basicauthuser:{SSHA}$SHA1\n" >> ../sources/htpasswd)
|
||||||
|
|
||||||
# Modif nginx
|
# 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;
|
sed -i "s|^.*\bauth_basic_user_file\b.*$| auth_basic_user_file $final_path/htpasswd;|" ../conf/nginx.conf;
|
||||||
else
|
else
|
||||||
echo "No basic auth";
|
echo "No basic auth";
|
||||||
|
|
Loading…
Reference in a new issue