mirror of
https://github.com/YunoHost-Apps/mongo-express_ynh.git
synced 2024-09-03 19:46:04 +02:00
Small corrections
This commit is contained in:
parent
88ecefb91a
commit
0b9fa59a65
4 changed files with 8 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
[Unit]
|
||||
Description=Mongo Express
|
||||
Wants=__MONGODB_SERVICENAME__.service
|
||||
After=network.target __MONGODB_SERVICENAME__.service
|
||||
After=network.target
|
||||
Requires=__MONGODB_SERVICENAME__.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
"nginx"
|
||||
"nginx",
|
||||
"mongod"
|
||||
],
|
||||
"arguments": {
|
||||
"install": [
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#=================================================
|
||||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
nodejs_version=16
|
||||
|
||||
# dependencies used by the app (must be on a single line)
|
||||
|
|
|
@ -20,10 +20,7 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
mongo_version=$(ynh_app_setting_get --app=$app --key=mongo_version)
|
||||
#db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
#db_user=$db_name
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
#datadir=$(ynh_app_setting_get --app=$app --key=datadir)
|
||||
|
||||
#=================================================
|
||||
# STANDARD REMOVE
|
||||
|
@ -102,6 +99,9 @@ ynh_script_progression --message="Removing dependencies..." --weight=1
|
|||
# Remove metapackage and its dependencies
|
||||
ynh_remove_app_dependencies
|
||||
|
||||
# Remove the version of Nodejs used if needed
|
||||
ynh_remove_nodejs
|
||||
|
||||
#=================================================
|
||||
# CLOSE A PORT
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue