Update
This commit is contained in:
parent
343ec738b4
commit
fbcec2f966
2 changed files with 6 additions and 2 deletions
|
@ -58,7 +58,9 @@ function restore_klipper_config_files(){
|
|||
Y|y)
|
||||
echo -e "${white}"
|
||||
cd "$PRINTER_DATA_FOLDER"
|
||||
mv config/backup_config.tar.gz backup_config.tar.gz
|
||||
if [ -f config/backup_config.tar.gz ]; then
|
||||
mv config/backup_config.tar.gz backup_config.tar.gz
|
||||
fi
|
||||
if [ -d config ]; then
|
||||
rm -rf config
|
||||
fi
|
||||
|
|
|
@ -58,7 +58,9 @@ function restore_moonraker_database(){
|
|||
Y|y)
|
||||
echo -e "${white}"
|
||||
cd "$PRINTER_DATA_FOLDER"
|
||||
mv config/backup_database.tar.gz backup_database.tar.gz
|
||||
if [ -f config/backup_database.tar.gz ]; then
|
||||
mv config/backup_database.tar.gz backup_database.tar.gz
|
||||
fi
|
||||
if [ -d database ]; then
|
||||
rm -rf database
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue