mirror of
https://github.com/YunoHost-Apps/timeoff_ynh.git
synced 2024-09-03 20:35:59 +02:00
Fix
This commit is contained in:
parent
2f682101b9
commit
90cfa16072
3 changed files with 5 additions and 7 deletions
|
@ -3,14 +3,14 @@
|
||||||
"id": "timeoff",
|
"id": "timeoff",
|
||||||
"packaging_format": 1,
|
"packaging_format": 1,
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Web application for managing employee absences"
|
"en": "Web application for managing employee absences",
|
||||||
|
"fr": "Web application for managing employee absences"
|
||||||
},
|
},
|
||||||
"version": "1.4.0~ynh1",
|
"version": "1.4.0~ynh1",
|
||||||
"url": "https://timeoff.management/",
|
"url": "https://timeoff.management/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"website": "https://timeoff.management/",
|
"website": "https://timeoff.management/",
|
||||||
"demo": "https://demo.example.com",
|
|
||||||
"admindoc": "https://timeoff.management/support/main-page.html",
|
"admindoc": "https://timeoff.management/support/main-page.html",
|
||||||
"code": "https://github.com/timeoff-management/timeoff-management-application"
|
"code": "https://github.com/timeoff-management/timeoff-management-application"
|
||||||
},
|
},
|
||||||
|
|
|
@ -54,7 +54,7 @@ ynh_app_setting_set --app=$app --key=language --value=$language
|
||||||
ynh_script_progression --message="Finding an available port..."
|
ynh_script_progression --message="Finding an available port..."
|
||||||
|
|
||||||
# Find an available port
|
# Find an available port
|
||||||
port=$(ynh_find_port 9001)
|
port=$(ynh_find_port --port=3000)
|
||||||
ynh_app_setting_set --app=$app --key=port --value=$port
|
ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -165,8 +165,7 @@ ynh_add_config --template="../conf/db.json" --destination="$final_path/config/db
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring a systemd service..."
|
ynh_script_progression --message="Configuring a systemd service..."
|
||||||
|
|
||||||
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
env_path="$PATH"
|
||||||
|
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -137,8 +137,7 @@ ynh_use_logrotate --non-append
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..."
|
ynh_script_progression --message="Upgrading systemd configuration..."
|
||||||
|
|
||||||
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
env_path="$PATH"
|
||||||
|
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue