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)
|
Y|y)
|
||||||
echo -e "${white}"
|
echo -e "${white}"
|
||||||
cd "$PRINTER_DATA_FOLDER"
|
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
|
if [ -d config ]; then
|
||||||
rm -rf config
|
rm -rf config
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -58,7 +58,9 @@ function restore_moonraker_database(){
|
||||||
Y|y)
|
Y|y)
|
||||||
echo -e "${white}"
|
echo -e "${white}"
|
||||||
cd "$PRINTER_DATA_FOLDER"
|
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
|
if [ -d database ]; then
|
||||||
rm -rf database
|
rm -rf database
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue