1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00
This commit is contained in:
ericgaspar 2022-02-26 20:48:10 +01:00
parent 1aebdeff19
commit 9d91c33fe3
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 8 additions and 3 deletions

View file

@ -63,7 +63,7 @@ define( 'YOURLS_COOKIEKEY', '__RANDOM__' );
** YOURLS will auto encrypt plain text passwords in this file
** Read http://yourls.org/userpassword for more information */
$yourls_user_passwords = [
'username' => 'password',
'__ADMIN__' => '__PASSWORD__',
// 'username2' => 'password2',
// You can have one or more 'login'=>'password' lines
];

View file

@ -51,6 +51,10 @@
{
"name": "admin",
"type": "user"
},
{
"name": "password",
"type": "password"
}
]
}

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES
#=================================================
YNH_PHP_VERSION="7.3"
YNH_PHP_VERSION="7.4"
# dependencies used by the app
pkg_dependencies="php${YNH_PHP_VERSION}-gmp php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-xml php-pear"

View file

@ -26,7 +26,8 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
random=$(ynh_string_random 24)
password=$YNH_APP_ARG_PASSWORD
random=$(ynh_string_random --length=24)
app=$YNH_APP_INSTANCE_NAME