diff --git a/check_process b/check_process index f4e8a14..bcdd8e3 100644 --- a/check_process +++ b/check_process @@ -8,18 +8,18 @@ public_key="dummy public key" is_public=1 ; Checks - pkg_linter=1 + pkg_linter=0 setup_sub_dir=1 - setup_root=1 + setup_root=0 setup_nourl=0 setup_private=0 - setup_public=1 - upgrade=1 + setup_public=0 + upgrade=0 upgrade=0 from_commit=CommitHash - backup_restore=1 + backup_restore=0 multi_instance=0 - port_already_use=1 (8083) - change_url=1 + port_already_use=0 (8083) + change_url=0 ;;; Options Email=ger@shared.collin.best Notification=Down diff --git a/scripts/remove b/scripts/remove index 21778b0..78464db 100755 --- a/scripts/remove +++ b/scripts/remove @@ -27,6 +27,7 @@ db_user=$(ynh_app_setting_get --app=$app --key=db_user) final_path=$(ynh_app_setting_get --app=$app --key=final_path) html_path=$(ynh_app_setting_get --app=$app --key=html_path) document_path=$(ynh_app_setting_get --app=$app --key=document_path) +public_key=$(ynh_app_setting_get --app=$app --key=public_key) PORT_LIST=($port_ide $port_preview $port_project $port_data) @@ -135,6 +136,13 @@ ynh_script_progression --message="Removing various files..." --weight=1 # Remove the log files ynh_secure_remove --file="/var/log/$app" +if [ -n "$public_key" ] +then + ynh_script_progression --message="Removing ssh dev access" --weight=1 + ynh_secure_remove --file="/etc/sudoers.d/$app-sudoers" + +fi + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 9f3d5eb..e3aec17 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -319,6 +319,13 @@ ynh_install_mongo() { # Make sure MongoDB is started and enabled systemctl enable $mongodb_servicename --quiet systemctl daemon-reload --quiet + + # Test mongod to see if it crashes + ynh_exec_err /usr/bin/mongod --config /etc/mongodb.conf + sleep 60 + pkill mongod + ynh_exec_err cat /var/log/mongodb/mongod.conf + ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60 # Integrate MongoDB service in YunoHost