From 6bcc47a24d3b263d770b5d1f39d8303d8be6bf1d Mon Sep 17 00:00:00 2001 From: polytan02 Date: Thu, 22 Dec 2016 12:05:24 +0000 Subject: [PATCH] Update on manifest.json --- manifest.json | 2 +- scripts/install | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 147ab08..834e95c 100644 --- a/manifest.json +++ b/manifest.json @@ -83,7 +83,7 @@ "type": "user", "ask": { "en": "Choose the username to access the OPDS/HTML server (unrelated to YunoHost users)", - "fr": "Indiquez le nom d'utilisateur pour accéder au serveur OPDS/HTML (non lié utilisateurs YunoHost)", + "fr": "Indiquez le nom d'utilisateur pour accéder au serveur OPDS/HTML (non lié utilisateurs YunoHost)" }, "example": "Gutenberg", "default": "Gutenberg" diff --git a/scripts/install b/scripts/install index 65e0370..9adeeb9 100755 --- a/scripts/install +++ b/scripts/install @@ -87,7 +87,14 @@ sudo cp -a ../sources/* $final_path/ # Set permissions sudo chmod 775 -R $final_path -sudo chmod 600 $final_path/htpasswd + +if [ "$basicauthcreate" = "Yes" ]; +then + sudo chmod 600 $final_path/htpasswd +else + echo "Nothing to do" +fi + sudo chown -hR $runninguser:$runninguser $final_path # Modify Nginx configuration file and copy it to Nginx conf directory