mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
Update install
For #7 Adding `configuration.yml` removal after installation, as it contains plain password.
This commit is contained in:
parent
f9e3464a54
commit
11103ad7a7
1 changed files with 4 additions and 2 deletions
|
@ -117,8 +117,9 @@ fi
|
|||
sudo service nginx reload
|
||||
|
||||
### POST-INSTALL ###
|
||||
sed -i "s@YNH_WWW_DOMAIN@$domain@g" ../sources/configuration.yml
|
||||
sed -i "s@YNH_WWW_APP@$app@g" ../sources/configuration.yml
|
||||
sed -i "s@YNH_APP_DOMAIN@$domain@g" ../sources/configuration.yml
|
||||
sed -i "s@/YNH_WWW_PATH@$path@g" ../sources/configuration.yml
|
||||
sed -i "s@YNH_WWW_APP@$app@g" ../sources/configuration.ymls
|
||||
sed -i "s@YNH_DB_PASS@$dbpass@g" ../sources/configuration.yml
|
||||
sed -i "s@YNH_ADMIN_USER@$admin@g" ../sources/configuration.yml
|
||||
sed -i "s@YNH_ADMIN_PASS@$adminpass@g" ../sources/configuration.yml
|
||||
|
@ -127,6 +128,7 @@ sed -i "s%YNH_ADMIN_EMAIL%$adminemail%g" ../sources/configuration.yml
|
|||
sed -i "s@YNH_FORUM_TITLE@$title@g" ../sources/configuration.yml
|
||||
sudo cp ../sources/configuration.yml $final_path
|
||||
#sudo su - www-data -s /bin/bash -c "cd $final_path && php -d memory_limit=-1 flarum install -f configuration.yml"
|
||||
sudo rm $final_path/configuration.yml
|
||||
|
||||
# Tell user the MySQL credentials for post-installation
|
||||
echo "MySQL database user is " $dbuser
|
||||
|
|
Loading…
Add table
Reference in a new issue