diff options
author | Chocobozzz <me@florianbigard.com> | 2018-12-05 17:44:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-12-05 17:44:36 +0100 |
commit | 7089e7b4e570710acac408bf95c688932a491707 (patch) | |
tree | 61d118b0599353db8b2ec03a7cab7c4d52a781a9 | |
parent | 2feebf3e6afaad9ab80976d1557d3a7bcf94de03 (diff) | |
download | PeerTube-7089e7b4e570710acac408bf95c688932a491707.tar.gz PeerTube-7089e7b4e570710acac408bf95c688932a491707.tar.zst PeerTube-7089e7b4e570710acac408bf95c688932a491707.zip |
Improve information regarding prune storage script
-rwxr-xr-x | scripts/prune-storage.ts | 1 | ||||
-rw-r--r-- | support/doc/tools.md | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.ts index 4ab0b4863..c0cd198f7 100755 --- a/scripts/prune-storage.ts +++ b/scripts/prune-storage.ts | |||
@@ -91,6 +91,7 @@ async function askConfirmation () { | |||
91 | confirm: { | 91 | confirm: { |
92 | type: 'string', | 92 | type: 'string', |
93 | description: 'These following unused files can be deleted, but please check your backups first (bugs happen).' + | 93 | description: 'These following unused files can be deleted, but please check your backups first (bugs happen).' + |
94 | ' Notice PeerTube must have been stopped when your ran this script.' + | ||
94 | ' Can we delete these files?', | 95 | ' Can we delete these files?', |
95 | default: 'n', | 96 | default: 'n', |
96 | required: true | 97 | required: true |
diff --git a/support/doc/tools.md b/support/doc/tools.md index 69d68464a..4f806a9db 100644 --- a/support/doc/tools.md +++ b/support/doc/tools.md | |||
@@ -198,10 +198,10 @@ $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production | |||
198 | ### prune-storage.js | 198 | ### prune-storage.js |
199 | 199 | ||
200 | Some transcoded videos or shutdown at a bad time can leave some unused files on your storage. | 200 | Some transcoded videos or shutdown at a bad time can leave some unused files on your storage. |
201 | To delete them (a confirmation will be demanded first): | 201 | Stop PeerTube and delete these files (a confirmation will be demanded first): |
202 | 202 | ||
203 | ``` | 203 | ``` |
204 | $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage | 204 | $ sudo systemctl stop peertube && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage |
205 | ``` | 205 | ``` |
206 | 206 | ||
207 | ### optimize-old-videos.js | 207 | ### optimize-old-videos.js |