mirror of
https://github.com/YunoHost-Apps/privatebin_ynh.git
synced 2024-09-03 20:15:56 +02:00
merge
This commit is contained in:
commit
f77a728d94
3 changed files with 17 additions and 7 deletions
|
@ -2,7 +2,8 @@
|
||||||
"name": "Zerobin",
|
"name": "Zerobin",
|
||||||
"id": "zerobin",
|
"id": "zerobin",
|
||||||
"description": {
|
"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": {
|
"developer": {
|
||||||
"name": "julien",
|
"name": "julien",
|
||||||
|
@ -15,14 +16,16 @@
|
||||||
{
|
{
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose a domain for Zerobin"
|
"en": "Choose a domain for Zerobin",
|
||||||
|
"fr": "Choisissez un domaine pour Zerobin"
|
||||||
},
|
},
|
||||||
"example": "domain.org"
|
"example": "domain.org"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "path",
|
"name": "path",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose a path for Zerobin"
|
"en": "Choose a path for Zerobin",
|
||||||
|
"fr": "Choisissez un chemin pour Zerobin"
|
||||||
},
|
},
|
||||||
"example": "/zerobin",
|
"example": "/zerobin",
|
||||||
"default": "/zerobin"
|
"default": "/zerobin"
|
||||||
|
@ -30,7 +33,8 @@
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Is it a public Zerobin site ?"
|
"en": "Is it a public Zerobin site ?",
|
||||||
|
"fr": "Est-ce un site public ?"
|
||||||
},
|
},
|
||||||
"choices": ["Yes", "No"],
|
"choices": ["Yes", "No"],
|
||||||
"default": "Yes"
|
"default": "Yes"
|
||||||
|
|
|
@ -29,9 +29,12 @@ sudo chmod 700 $final_path/{data,tmp}
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# 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_PATH@$path@g" ../conf/nginx.conf
|
||||||
sed -i "s@YNH_WWW_ALIAS@$final_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" ];
|
if [ $is_public = "Yes" ];
|
||||||
then
|
then
|
||||||
sudo yunohost app setting zerobin skipped_uris -v "/"
|
sudo yunohost app setting zerobin skipped_uris -v "/"
|
||||||
|
|
|
@ -24,7 +24,10 @@ sudo chmod 700 $final_path/{data,tmp}
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# 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_PATH@$path@g" ../conf/nginx.conf
|
||||||
sed -i "s@YNH_WWW_ALIAS@$final_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" ];
|
if [ $is_public = "Yes" ];
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue