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