1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00
This commit is contained in:
yalh76 2021-04-14 20:55:31 +02:00
parent fd89035a37
commit 290e1299fc

View file

@ -143,10 +143,10 @@ then
tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
cp -a "$final_path/config/production.yaml" "$tmpdir/production.yaml"
cp -af "$final_path/config/production.yaml" "$tmpdir/production.yaml"
if [ -s "$final_path/config/local-production.json" ]
then
cp -a "$final_path/config/local-production.json" "$tmpdir/local-production.json"
cp -af "$final_path/config/local-production.json" "$tmpdir/local-production.json"
fi
# Remove the app directory securely
@ -156,11 +156,11 @@ then
ynh_setup_source --dest_dir="$final_path"
#Copy the admin saved settings from tmp directory to final path
cp -a "$tmpdir/production.yaml" "$final_path/config/production.yaml"
cp -af "$tmpdir/production.yaml" "$final_path/config/production.yaml"
if [ -s "$tmpdir/local-production.json" ]
then
cp -a "$tmpdir/local-production.json" "$final_path/config/local-production.json"
cp -af "$tmpdir/local-production.json" "$final_path/config/local-production.json"
else
cp ../conf/local-production.json "$final_path/config/local-production.json"
fi