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-23 19:03:57 +01:00 committed by GitHub
parent e4c68432d9
commit 9097d1ab59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ source /usr/share/yunohost/helpers
app=emailpoubelle
lang="fr_FR.UTF-8 en_US.UTF-8 it_IT.UTF-8"
# Retrieve arguments
domain=$1
@ -49,6 +50,18 @@ if [[ ! $? -eq 0 ]]; then
systemctl restart php*fpm*
fi
#install locale (nginx will restart at the end of the install)
for i in $lang
do
cat /etc/locale/locale.gen | grep "^[^#;]" | grep $i
if [[ ! $? -eq 0 ]]; then
echo "$i UTF-8" >> /etc/locale.gen
locale=1
fi
done
if [[ $locale -eq 1 ]]; then
locale-gen
fi
# Copy source files
sudo mkdir -p $final_path