diff --git a/src/freedombone-restore-local b/src/freedombone-restore-local index 87807ae6..78c0132a 100755 --- a/src/freedombone-restore-local +++ b/src/freedombone-restore-local @@ -154,34 +154,34 @@ function restore_configfiles { fi fi - if [ -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE ]; then - cp -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE $NODEJS_INSTALLED_APPS_FILE - fi + #if [ -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE ]; then + # cp -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE $NODEJS_INSTALLED_APPS_FILE + #fi - if [ -f $temp_restore_dir/root/${PROJECT_NAME}.cfg ]; then - cp -f $temp_restore_dir/root/${PROJECT_NAME}.cfg $CONFIGURATION_FILE - if [ ! "$?" = "0" ]; then - set_user_permissions - backup_unmount_drive - rm -rf $temp_restore_dir - exit 5294 - fi - fi + #if [ -f $temp_restore_dir/root/${PROJECT_NAME}.cfg ]; then + # cp -f $temp_restore_dir/root/${PROJECT_NAME}.cfg $CONFIGURATION_FILE + # if [ ! "$?" = "0" ]; then + # set_user_permissions + # backup_unmount_drive + # rm -rf $temp_restore_dir + # exit 5294 + # fi + #fi - if [ -f $CONFIGURATION_FILE ]; then - # install according to the config file - freedombone -c $CONFIGURATION_FILE - fi + #if [ -f $CONFIGURATION_FILE ]; then + # # install according to the config file + # freedombone -c $CONFIGURATION_FILE + #fi - if [ -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt ]; then - cp -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE - if [ ! "$?" = "0" ]; then - set_user_permissions - backup_unmount_drive - rm -rf $temp_restore_dir - exit 6382 - fi - fi + #if [ -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt ]; then + # cp -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE + # if [ ! "$?" = "0" ]; then + # set_user_permissions + # backup_unmount_drive + # rm -rf $temp_restore_dir + # exit 6382 + # fi + #fi if [ -f ${temp_restore_dir}${BACKUP_EXTRA_DIRECTORIES} ]; then cp -f ${temp_restore_dir}${BACKUP_EXTRA_DIRECTORIES} ${BACKUP_EXTRA_DIRECTORIES} diff --git a/src/freedombone-restore-remote b/src/freedombone-restore-remote index 853cb7d3..1bf97979 100755 --- a/src/freedombone-restore-remote +++ b/src/freedombone-restore-remote @@ -144,32 +144,32 @@ function restore_configfiles { fi fi - if [ -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE ]; then - cp -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE $NODEJS_INSTALLED_APPS_FILE - fi + #if [ -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE ]; then + # cp -f $temp_restore_dir$NODEJS_INSTALLED_APPS_FILE $NODEJS_INSTALLED_APPS_FILE + #fi - if [ -f $temp_restore_dir/root/${PROJECT_NAME}.cfg ]; then - cp -f $temp_restore_dir/root/${PROJECT_NAME}.cfg $CONFIGURATION_FILE - if [ ! "$?" = "0" ]; then - unmount_drive - rm -rf $temp_restore_dir - exit 5372 - fi - fi + #if [ -f $temp_restore_dir/root/${PROJECT_NAME}.cfg ]; then + # cp -f $temp_restore_dir/root/${PROJECT_NAME}.cfg $CONFIGURATION_FILE + # if [ ! "$?" = "0" ]; then + # unmount_drive + # rm -rf $temp_restore_dir + # exit 5372 + # fi + #fi - if [ -f $CONFIGURATION_FILE ]; then - # install according to the config file - freedombone -c $CONFIGURATION_FILE - fi + #if [ -f $CONFIGURATION_FILE ]; then + # # install according to the config file + # freedombone -c $CONFIGURATION_FILE + #fi - if [ -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt ]; then - cp -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE - if [ ! "$?" = "0" ]; then - unmount_drive - rm -rf $temp_restore_dir - exit 7252 - fi - fi + #if [ -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt ]; then + # cp -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE + # if [ ! "$?" = "0" ]; then + # unmount_drive + # rm -rf $temp_restore_dir + # exit 7252 + # fi + #fi if [ -f ${temp_restore_dir}${BACKUP_EXTRA_DIRECTORIES} ]; then cp -f ${temp_restore_dir}${BACKUP_EXTRA_DIRECTORIES} ${BACKUP_EXTRA_DIRECTORIES}