aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-05-06 19:37:08 +0200
committerGitHub <noreply@github.com>2017-05-06 19:37:08 +0200
commit6d0d7a561a4bb3eb7d0e5d4cf53c488c88e07da0 (patch)
tree474d38f64a644984d57a952c4baecc46b5e305ac /scripts/restore
parent7d9014285df5dcdecbbf381397a636e6ff771c9b (diff)
downloadmastodon_ynh-6d0d7a561a4bb3eb7d0e5d4cf53c488c88e07da0.tar.gz
mastodon_ynh-6d0d7a561a4bb3eb7d0e5d4cf53c488c88e07da0.tar.bz2
mastodon_ynh-6d0d7a561a4bb3eb7d0e5d4cf53c488c88e07da0.zip
[fix] Change rm dump to ynh_secure_remove
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/restore b/scripts/restore
index a57a33f..500a9b1 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -113,7 +113,7 @@ psql mastodon_production < $final_path/mastodon_db.sql
RECOMMANDS
# Remove dump
-sudo rm $final_path/mastodon_db.sql
+ynh_secure_remove $final_path/mastodon_db.sql
# Create symlink for ruby
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true