From 820de9f7b6e02bc28005d2f86623ee1e61114635 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 Dec 2014 15:13:14 +0000 Subject: [PATCH] Remove redmatrix install before restoring --- install-freedombone.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 966d512b..7686234e 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -1196,7 +1196,8 @@ function create_restore_script { echo ' echo "Restoring blog installation"' >> /usr/bin/$RESTORE_SCRIPT_NAME echo ' mkdir /root/tempblog' >> /usr/bin/$RESTORE_SCRIPT_NAME echo " rsyncrypto -v -d -r $USB_MOUNT/backup/blog /root/tempblog $USB_MOUNT/backup/blog.keys $BACKUP_CERTIFICATE" >> /usr/bin/$RESTORE_SCRIPT_NAME - echo " cp -r /root/tempblog/usb/backup/blog/www/$FULLBLOG_DOMAIN_NAME/htdocs/* /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/" >> /usr/bin/$RESTORE_SCRIPT_NAME + echo " rm -rf /var/www/$FULLBLOG_DOMAIN_NAME/htdocs" >> /usr/bin/$RESTORE_SCRIPT_NAME + echo " cp -r /root/tempblog/usb/backup/blog/www/$FULLBLOG_DOMAIN_NAME/htdocs /var/www/$FULLBLOG_DOMAIN_NAME/" >> /usr/bin/$RESTORE_SCRIPT_NAME echo ' if [ ! "$?" = "0" ]; then' >> /usr/bin/$RESTORE_SCRIPT_NAME echo " umount $USB_MOUNT" >> /usr/bin/$RESTORE_SCRIPT_NAME echo " rm -rf $USB_MOUNT" >> /usr/bin/$RESTORE_SCRIPT_NAME