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
de1d385e21
commit
67b8ae405e
2 changed files with 11 additions and 4 deletions
|
@ -112,6 +112,9 @@ ynh_script_progression --message="Modifying a config file..."
|
||||||
ynh_add_config --template="../conf/app.json" --destination="$final_path/config/app.json"
|
ynh_add_config --template="../conf/app.json" --destination="$final_path/config/app.json"
|
||||||
ynh_add_config --template="../conf/db.json" --destination="$final_path/config/db.json"
|
ynh_add_config --template="../conf/db.json" --destination="$final_path/config/db.json"
|
||||||
|
|
||||||
|
chmod 600 "$final_path/config/db.json"
|
||||||
|
chown $app:$app "$final_path/config/db.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -78,7 +78,7 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..."
|
ynh_script_progression --message="Upgrading source files..."
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config"
|
ynh_setup_source --dest_dir="$final_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
@ -113,6 +113,7 @@ then
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
|
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm cache clean 2>/dev/null
|
||||||
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install 2>/dev/null
|
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install 2>/dev/null
|
||||||
#ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run-script db-update --production 2>/dev/null
|
#ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run-script db-update --production 2>/dev/null
|
||||||
popd
|
popd
|
||||||
|
@ -121,10 +122,13 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE
|
# CONFIGURE
|
||||||
#=================================================
|
#=================================================
|
||||||
# ynh_script_progression --message="Modifying a config file..."
|
ynh_script_progression --message="Modifying a config file..."
|
||||||
|
|
||||||
# ynh_add_config --template="../conf/app.json" --destination="$final_path/config/app.json"
|
ynh_add_config --template="../conf/app.json" --destination="$final_path/config/app.json"
|
||||||
# ynh_add_config --template="../conf/db.json" --destination="$final_path/config/db.json"
|
ynh_add_config --template="../conf/db.json" --destination="$final_path/config/db.json"
|
||||||
|
|
||||||
|
chmod 600 "$final_path/config/db.json"
|
||||||
|
chown $app:$app "$final_path/config/db.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
|
|
Loading…
Add table
Reference in a new issue