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",
|
||||
"packaging_format": 1,
|
||||
"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",
|
||||
"url": "https://timeoff.management/",
|
||||
"upstream": {
|
||||
"license": "MIT",
|
||||
"website": "https://timeoff.management/",
|
||||
"demo": "https://demo.example.com",
|
||||
"admindoc": "https://timeoff.management/support/main-page.html",
|
||||
"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..."
|
||||
|
||||
# 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
|
||||
|
||||
#=================================================
|
||||
|
@ -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_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
||||
|
||||
env_path="$PATH"
|
||||
ynh_add_systemd_config
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -137,8 +137,7 @@ ynh_use_logrotate --non-append
|
|||
#=================================================
|
||||
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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue