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:
parent
5f87c300ea
commit
7636662344
1 changed files with 10 additions and 11 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue