1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00

Removed the password

This commit is contained in:
anmol 2019-01-05 23:17:57 +05:30
parent d589591dd7
commit 4ef11b40ef
3 changed files with 1 additions and 16 deletions

View file

@ -8,7 +8,6 @@
domain="domain.tld" (DOMAIN)
path="/path" (PATH)
admin="john" (admin)
password="yourls123" (password)
; Checks
pkg_linter=1
setup_sub_dir=1

View file

@ -53,19 +53,10 @@
"name": "admin",
"type": "admin",
"ask": {
"en": "Choose a Yourls administrator (can be other then YunoHost registered user)",
"en": "Choose a Yourls administrator (admin privileges for Yourls will be granted to this user)",
"fr": "Administrateur du site Yourls"
},
"example": "yoda"
},
{
"name": "password",
"type": "password",
"ask": {
"en": "Password for the admin account (At least 6 characters long)",
"fr": "Administrateur password (At least 6 characters long)"
},
"example": "Strong password"
}
]

View file

@ -23,7 +23,6 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
pass=$YNH_APP_ARG_PASSWORD
# This is a multi-instance app, meaning it can be installed several times independently
# The id of the app as stated in the manifest is available as $YNH_APP_ID
@ -51,10 +50,6 @@ ynh_webpath_register $app $domain $path_url
final_path=/var/www/$app
test ! -e "$final_path" || ynh_die "This path already contains a folder"
# Check password strength
[[ ${#pass} -gt 6 ]] || ynh_die \
"The password is too weak, it must be longer than 6 characters"
#=================================================
# STORE SETTINGS FROM MANIFEST
#=================================================