mirror of
https://github.com/YunoHost-Apps/yourls_ynh.git
synced 2024-09-03 20:35:59 +02:00
no need for upload_password anymore
This commit is contained in:
parent
cf95b9c05f
commit
90e74a1314
3 changed files with 3 additions and 15 deletions
|
@ -57,7 +57,6 @@ define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );
|
||||||
** YOURLS will auto encrypt plain text passwords in this file
|
** YOURLS will auto encrypt plain text passwords in this file
|
||||||
** Read http://yourls.org/userpassword for more information */
|
** Read http://yourls.org/userpassword for more information */
|
||||||
$yourls_user_passwords = array(
|
$yourls_user_passwords = array(
|
||||||
// 'yourlsuser' => 'yourlspass' // You can have one or more 'login'=>'password' lines
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/** Debug mode to output some internal information
|
/** Debug mode to output some internal information
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
"name": "Yourls",
|
"name": "Yourls",
|
||||||
"id": "yourls",
|
"id": "yourls",
|
||||||
"description": {
|
"description": {
|
||||||
"en": "a URL shortening service",
|
"en": "An URL shortening service",
|
||||||
"fr": "un service de raccourcisseur d'url"
|
"fr": "Un service de raccourcisseur d'url"
|
||||||
},
|
},
|
||||||
"developer": {
|
"developer": {
|
||||||
"name": "courgette",
|
"name": "courgette",
|
||||||
|
@ -34,17 +34,9 @@
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose the Yourls administrator (must be an existing YunoHost user)",
|
"en": "Choose the Yourls administrator (must be an existing YunoHost user)",
|
||||||
"fr": "Administrateur du site (doit être un utilisateur Yunohost existant)"
|
"fr": "Administrateur du site Yourls (doit être un utilisateur Yunohost existant)"
|
||||||
},
|
},
|
||||||
"example": "yoda"
|
"example": "yoda"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "upload_password",
|
|
||||||
"ask": {
|
|
||||||
"en": "Set the password granting upload permissions (leave empty to allow anybody to upload)",
|
|
||||||
"fr": "Choisissez le password pour autoriser l'upload (laissez vide pour autorisé tout le monde)"
|
|
||||||
},
|
|
||||||
"example": "supersecretpassword"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
domain=$1
|
domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
admin_user=$3
|
admin_user=$3
|
||||||
upload_password=$4
|
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain$path -a yourls
|
sudo yunohost app checkurl $domain$path -a yourls
|
||||||
|
@ -46,10 +45,8 @@ sudo sed -i "s/yunopass/$db_pwd/g" $final_path/user/config.php
|
||||||
sudo sed -i "s/yunobase/$db_user/g" $final_path/user/config.php
|
sudo sed -i "s/yunobase/$db_user/g" $final_path/user/config.php
|
||||||
sudo sed -i "s/yunodomain/$domain/g" $final_path/user/config.php
|
sudo sed -i "s/yunodomain/$domain/g" $final_path/user/config.php
|
||||||
sudo sed -i "s/yourlsuser/$admin_user/g" $final_path/user/config.php
|
sudo sed -i "s/yourlsuser/$admin_user/g" $final_path/user/config.php
|
||||||
sudo sed -i "s/yourlspass/$upload_password/g" $final_path/user/config.php
|
|
||||||
sudo sed -i "s/_yourlspath$path/g" $final_path/user/config.php
|
sudo sed -i "s/_yourlspath$path/g" $final_path/user/config.php
|
||||||
|
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
sudo chown -R www-data: $final_path
|
sudo chown -R www-data: $final_path
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue