From 7636662344bc683f6eeb7f5876124d45e9ef29db Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 24 Nov 2018 00:26:38 +0100 Subject: [PATCH] Update install --- scripts/install | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/scripts/install b/scripts/install index 251babc..9c7ccca 100644 --- a/scripts/install +++ b/scripts/install @@ -36,10 +36,7 @@ ynh_webpath_register $app $domain $path_url # Check user ynh_user_exists "$admin" -if [[ ! $? -eq 0 ]]; then -echo "Wrong user" -exit 1 -fi + #================================================= # STORE SETTINGS FROM MANIFEST #================================================= @@ -56,15 +53,17 @@ ynh_install_app_dependencies $pkg_dependencies #install locale (nginx will restart at the end of the install) for i in $lang do - cat /etc/locale.gen | grep "^[^#;]" | grep $i - if [[ ! $? -eq 0 ]]; then - echo "$i UTF-8" >> /etc/locale.gen - locale=1 - fi +# cat /etc/locale.gen | grep "^[^#;]" | grep $i +# if [[ ! $? -eq 0 ]]; then +# echo "$i UTF-8" >> /etc/locale.gen +# locale=1 +# fi +ynh_replace_string "#$i" "$i" /etc/locale.gen + done -if [[ $locale -eq 1 ]]; then +#if [[ $locale -eq 1 ]]; then locale-gen -fi +#fi # Copy source files sudo mkdir -p $final_path