1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

Merge branch 'master' into testing

This commit is contained in:
frju365 2019-01-06 13:15:16 +01:00 committed by GitHub
commit 2528ed6b60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 11 deletions

View file

@ -151,7 +151,7 @@ cat $final_path/config.json
chown -R $app:$app $final_path chown -R $app:$app $final_path
pushd $final_path pushd $final_path
exec_as "$app" ./nodebb setup -l exec_as "$app" ./nodebb setup -l > $install_log
exec_as "$app" npm install nodebb-plugin-dbsearch --save-prod exec_as "$app" npm install nodebb-plugin-dbsearch --save-prod
exec_as "$app" ./nodebb build -l exec_as "$app" ./nodebb build -l
popd popd
@ -198,3 +198,18 @@ ynh_check_starting "NodeBB is now listening on: 0.0.0.0:4567" "/var/log/syslog"
#================================================= #=================================================
systemctl reload nginx systemctl reload nginx
#=================================================
# SEND A README FOR THE ADMIN
#=================================================
mail_content=$(cat $install_log | grep '\(Username\|Password\)')*
message=" $app was successfully installed :)
Please open your $app domain: https://$domain$path_url
$mail_content
If you are facing any problem or want to improve this app, please open a new issue here: https://github.com/YunoHost-Apps/nodebb_ynh"
ynh_send_readme_to_admin "$message"

View file

@ -46,10 +46,7 @@ fi
#================================================= #=================================================
mongo --shell "$dbname" --eval 'db.dropUser("'${dbuser}'", {w: "majority", wtimeout: 5000})' <<< exit mongo --shell "$dbname" --eval 'db.dropUser("'${dbuser}'", {w: "majority", wtimeout: 5000})' <<< exit
#mongo -u $dbuser -p$dbpass --authenticationDatabase $dbname --shell "$dbname" --eval 'db.dropUser('dbuser');' <<< exit
mongo --shell "$dbname" --eval 'db.runCommand({dropDatabase: 1})' <<< exit mongo --shell "$dbname" --eval 'db.runCommand({dropDatabase: 1})' <<< exit
#mongo -u $dbuser -p$dbpass --authenticationDatabase $dbname --shell "$dbname" --eval 'db.dropDatabase();' <<< exit
#================================================= #=================================================
# REMOVE DEPENDENCIES # REMOVE DEPENDENCIES
@ -72,13 +69,6 @@ ynh_secure_remove "$final_path"
# Remove the dedicated nginx config # Remove the dedicated nginx config
ynh_remove_nginx_config ynh_remove_nginx_config
#=================================================
# REMOVE PHP-FPM CONFIGURATION
#=================================================
# Remove the dedicated php-fpm config
#ynh_remove_fpm_config
#================================================= #=================================================
# REMOVE LOGROTATE CONFIGURATION # REMOVE LOGROTATE CONFIGURATION
#================================================= #=================================================