1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/privatebin_ynh.git synced 2024-09-03 20:15:56 +02:00
This commit is contained in:
Julien Malik 2014-04-07 01:18:29 +02:00
commit f77a728d94
3 changed files with 17 additions and 7 deletions

View file

@ -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"

View file

@ -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 "/"

View file

@ -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