diff --git a/scripts/install b/scripts/install index 7a760ce..97be625 100644 --- a/scripts/install +++ b/scripts/install @@ -13,16 +13,16 @@ if [[ ! $? -eq 0 ]]; then exit 1 fi -# Add settings to YunoHost -sudo yunohost app setting leed admin -v $admin -sudo yunohost app setting leed language -v $language - # Check domain/path availability sudo yunohost app checkurl $domain$path -a leed if [[ ! $? -eq 0 ]]; then exit 1 fi +# Add settings to YunoHost +sudo yunohost app setting leed admin -v $admin +sudo yunohost app setting leed language -v $language + # Generate random password db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d 'A-Za-z0-9' | sed -n 's/\(.\{24\}\).*/\1/p')