diff --git a/manifest.json b/manifest.json index e902bbc..aa0011b 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,8 @@ "name": "Zerobin", "id": "zerobin", "description": { - "en": "A minimalist, opensource online pastebin where the server has zero knowledge of pasted data" + "en": "A minimalist, opensource online pastebin where the server has zero knowledge of pasted data", + "fr": "Un pastebin minimaliste, libre, où le serveur n'a aucune connaissance des données copiées" }, "developer": { "name": "julien", @@ -15,14 +16,16 @@ { "name": "domain", "ask": { - "en": "Choose a domain for Zerobin" + "en": "Choose a domain for Zerobin", + "fr": "Choisissez un domaine pour Zerobin" }, "example": "domain.org" }, { "name": "path", "ask": { - "en": "Choose a path for Zerobin" + "en": "Choose a path for Zerobin", + "fr": "Choisissez un chemin pour Zerobin" }, "example": "/zerobin", "default": "/zerobin" @@ -30,7 +33,8 @@ { "name": "is_public", "ask": { - "en": "Is it a public Zerobin site ?" + "en": "Is it a public Zerobin site ?", + "fr": "Est-ce un site public ?" }, "choices": ["Yes", "No"], "default": "Yes" diff --git a/scripts/install b/scripts/install index 65c184f..e4f3eb1 100755 --- a/scripts/install +++ b/scripts/install @@ -29,9 +29,12 @@ 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 +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 +sudo yunohost app setting zerobin is_public -v "$is_public" if [ $is_public = "Yes" ]; then sudo yunohost app setting zerobin skipped_uris -v "/" diff --git a/scripts/upgrade b/scripts/upgrade index ecffa7c..d6997af 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,7 +24,10 @@ 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 +nginxconf=/etc/nginx/conf.d/$domain.d/zerobin.conf +sudo cp ../conf/nginx.conf $nginxconf +sudo chown root: $nginxconf +sudo chmod 600 $nginxconf if [ $is_public = "Yes" ]; then