Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
d742ea58
Commit
d742ea58
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Don't restore completion file
This could cause problems with upgrades
parent
06e4db61
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-restore-local
+28
-28
28 additions, 28 deletions
src/freedombone-restore-local
src/freedombone-restore-remote
+26
-26
26 additions, 26 deletions
src/freedombone-restore-remote
with
54 additions
and
54 deletions
src/freedombone-restore-local
+
28
−
28
View file @
d742ea58
...
...
@@ -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
/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
$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$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 $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
}${
BACKUP_EXTRA_DIRECTORIES
}
]
;
then
cp
-f
${
temp_restore_dir
}${
BACKUP_EXTRA_DIRECTORIES
}
${
BACKUP_EXTRA_DIRECTORIES
}
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-restore-remote
+
26
−
26
View file @
d742ea58
...
...
@@ -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
/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
$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$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 $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
}${
BACKUP_EXTRA_DIRECTORIES
}
]
;
then
cp
-f
${
temp_restore_dir
}${
BACKUP_EXTRA_DIRECTORIES
}
${
BACKUP_EXTRA_DIRECTORIES
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment