mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
commit
1e7c4fa7f7
1 changed files with 3 additions and 3 deletions
|
@ -169,11 +169,11 @@ then
|
||||||
# Download Mastodon
|
# Download Mastodon
|
||||||
mv "$final_path/live" "$final_path/live_back"
|
mv "$final_path/live" "$final_path/live_back"
|
||||||
ynh_setup_source --dest_dir="$final_path/live"
|
ynh_setup_source --dest_dir="$final_path/live"
|
||||||
if [ -z $final_path/live_back/public/system ]; then
|
if [ -d "$final_path/live_back/public/system" ]; then
|
||||||
rsync -a "$final_path/live_back/public/system" "$final_path/live_back/public/."
|
rsync -a "$final_path/live_back/public/system" "$final_path/live/public/."
|
||||||
fi
|
fi
|
||||||
rsync -a "$final_path/live_back/.env.production" "$final_path/live/."
|
rsync -a "$final_path/live_back/.env.production" "$final_path/live/."
|
||||||
rm -Rf "$final_path/live_back"
|
ynh_secure_remove --file="$final_path/live_back/"
|
||||||
|
|
||||||
# Clean files which are not needed anymore
|
# Clean files which are not needed anymore
|
||||||
ynh_secure_remove --file="$final_path/live/config/initializers/timeout.rb"
|
ynh_secure_remove --file="$final_path/live/config/initializers/timeout.rb"
|
||||||
|
|
Loading…
Reference in a new issue