mirror of
https://github.com/YunoHost-Apps/peertube_ynh.git
synced 2024-09-03 19:56:29 +02:00
reorder
This commit is contained in:
parent
6362b10438
commit
fac4409c8c
1 changed files with 13 additions and 12 deletions
|
@ -140,22 +140,11 @@ mkdir -p "$datadir"
|
||||||
# Give permission to the datadir
|
# Give permission to the datadir
|
||||||
chown -R "$app":"$app" "$datadir"
|
chown -R "$app":"$app" "$datadir"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# BUILD YARN DEPENDENCIES
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
cp ../conf/production.yaml "$final_path/config/production.yaml"
|
|
||||||
touch "$final_path/config/local-production.json"
|
|
||||||
|
|
||||||
(
|
|
||||||
cd "$final_path"
|
|
||||||
yarn install --production --pure-lockfile
|
|
||||||
)
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
cp ../conf/production.yaml "$final_path/config/production.yaml"
|
||||||
ynh_replace_string "__domain__" "$domain" "$final_path/config/production.yaml"
|
ynh_replace_string "__domain__" "$domain" "$final_path/config/production.yaml"
|
||||||
ynh_replace_string "__db_name__" "$app" "$final_path/config/production.yaml"
|
ynh_replace_string "__db_name__" "$app" "$final_path/config/production.yaml"
|
||||||
ynh_replace_string "__app__" "$app" "$final_path/config/production.yaml"
|
ynh_replace_string "__app__" "$app" "$final_path/config/production.yaml"
|
||||||
|
@ -170,6 +159,18 @@ ynh_replace_string "__PORT__" "$port" "$final_path/config/production.y
|
||||||
# Calculate and store the config file checksum into the app settings
|
# Calculate and store the config file checksum into the app settings
|
||||||
ynh_store_file_checksum "$final_path/config/production.yaml"
|
ynh_store_file_checksum "$final_path/config/production.yaml"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# BUILD YARN DEPENDENCIES
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
|
||||||
|
touch "$final_path/config/local-production.json"
|
||||||
|
|
||||||
|
(
|
||||||
|
cd "$final_path"
|
||||||
|
yarn install --production --pure-lockfile
|
||||||
|
)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue