1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00

Update install

This commit is contained in:
Krakinou 2018-11-24 00:26:38 +01:00 committed by GitHub
parent 5f87c300ea
commit 7636662344
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,10 +36,7 @@ ynh_webpath_register $app $domain $path_url
# Check user # Check user
ynh_user_exists "$admin" ynh_user_exists "$admin"
if [[ ! $? -eq 0 ]]; then
echo "Wrong user"
exit 1
fi
#================================================= #=================================================
# STORE SETTINGS FROM MANIFEST # 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) #install locale (nginx will restart at the end of the install)
for i in $lang for i in $lang
do do
cat /etc/locale.gen | grep "^[^#;]" | grep $i # cat /etc/locale.gen | grep "^[^#;]" | grep $i
if [[ ! $? -eq 0 ]]; then # if [[ ! $? -eq 0 ]]; then
echo "$i UTF-8" >> /etc/locale.gen # echo "$i UTF-8" >> /etc/locale.gen
locale=1 # locale=1
fi # fi
ynh_replace_string "#$i" "$i" /etc/locale.gen
done done
if [[ $locale -eq 1 ]]; then #if [[ $locale -eq 1 ]]; then
locale-gen locale-gen
fi #fi
# Copy source files # Copy source files
sudo mkdir -p $final_path sudo mkdir -p $final_path