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-21 00:19:45 +01:00 committed by GitHub
parent 2caca7b379
commit 6d5b8ac6b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ fi
ynh_webpath_register $app $domain $path ynh_webpath_register $app $domain $path
# Check user # Check user
sudo yunohost user list --json | grep -q "\"username\": \"$admin\"" ynh_user_exists "$admin"
if [[ ! $? -eq 0 ]]; then if [[ ! $? -eq 0 ]]; then
echo "Wrong user" echo "Wrong user"
exit 1 exit 1
@ -65,8 +65,9 @@ sudo sed -i "s@motdepassedefou@$db_pwd@g" $final_path/conf.php
#setting conf file not world-readable (dude, there is a plain-text password !) #setting conf file not world-readable (dude, there is a plain-text password !)
sudo chmod o-r $final_path/conf.php sudo chmod o-r $final_path/conf.php
#initialize database #initialize database (databasename = db_user)
sudo yunohost app initdb $db_user -p $db_pwd ynh_mysql_create_db $db_user $db_user $db_pwd
#sudo yunohost app initdb $db_user -p $db_pwd
#setting postfix to use virtual aliases file #setting postfix to use virtual aliases file
sudo cp $postfix $postfix.emailpoubelle.bak #backup it eventually if that causes some issues sudo cp $postfix $postfix.emailpoubelle.bak #backup it eventually if that causes some issues