mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
Fixes typo in update.sh
This commit is contained in:
parent
3234a97b3c
commit
8d4a2d0ff9
|
|
@ -10,15 +10,15 @@ shopt -s extglob
|
|||
pushd `dirname $0` > /dev/null
|
||||
|
||||
backupBundleFileName="backup-`date +%d-%m-%Y-%H-%M-%S`.tgz"
|
||||
echo Making a backup of the current installation in /data/backups/$backupBundleFileName
|
||||
echo Making a backup of the current installation in ./data/backups/$backupBundleFileName
|
||||
mkdir -p ./data/backups > /dev/null
|
||||
tar -zcvf ./data/backups/$backupBundleFileName --exclude ./data/backups . > /dev/null
|
||||
find ./data/backups/*.tgz -mtime +60 -type f -delete
|
||||
|
||||
echo Deleting everything except /data and this script
|
||||
echo Deleting everything except ./data and this script
|
||||
rm -rf !(data|update.sh) > /dev/null
|
||||
|
||||
echo Emptying /data/viewcache
|
||||
echo Emptying ./data/viewcache
|
||||
rm -rf ./data/viewcache/* > /dev/null
|
||||
|
||||
echo Downloading latest release
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user