Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
comp-backup
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
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ITS
comp-backup
Commits
eb80ab69
Commit
eb80ab69
authored
3 weeks ago
by
efer
Browse files
Options
Downloads
Patches
Plain Diff
text fixes
parent
63112f19
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
comp-backup-install.sh
+7
-7
7 additions, 7 deletions
comp-backup-install.sh
with
7 additions
and
7 deletions
comp-backup-install.sh
+
7
−
7
View file @
eb80ab69
...
...
@@ -68,7 +68,7 @@ fi
# SUDO check
#
chksudo
()
{
echo
"Checking
for
sudo rights for
$USER
..."
echo
"Checking sudo rights for
$USER
..."
sudo
-l
&>/dev/null
if
[
$?
-ne
0
]
;
then
echo
-e
"[sudo]"
$R_
"You need sudo rights to continue"
$_N
...
...
@@ -694,7 +694,7 @@ echo -e "[backup script]" $G_"Installed"$_N
# macOS specific post-install
#
if
[
$HOST_OS
=
'Darwin'
]
;
then
echo
-e
$P_
"
\n
########
\n
"
$_N
echo
-e
"
\n
########
"
$Y_
"ATTENTION"
$_N
"########
\n
"
echo
-e
$Y_
"Prepare your Mac to show notifications from the backup script:
\n
"
$_N
read
-p
$' * Press Enter/Return to start the Script Editor
...
...
@@ -712,7 +712,7 @@ if [ $HOST_OS = 'Darwin' ]; then
# Close the Script Editor and continue with the backup install script
#
\n
"
>
/tmp/notification.applescript
echo
'display notification "Notifications from scripts working!"'
>>
/tmp/notification.applescript
echo
'display notification "Notifications from scripts
are
working!"'
>>
/tmp/notification.applescript
open
-a
'Script Editor'
/tmp/notification.applescript
sleep
5
...
...
@@ -727,7 +727,7 @@ This can also be done manually in:"
read
-p
"Do you want to run a backup now or postpone it for later? (y/n) "
initialbackup
case
$initialbackup
in
[
Yy]
*
)
echo
-e
"[backup script]"
$G_
"Running..."
$_N
echo
-e
"[backup script]"
$G_
"Running
in background
..."
$_N
launchctl load
$UNIT_DIR
/local.comp-backup.plist &>/dev/null
launchctl kickstart gui/
$(
id
-u
)
/local.comp-backup
break
...
...
@@ -738,11 +738,11 @@ This can also be done manually in:"
;;
esac
done
echo
-e
$P_
"
\n
########
\n
"
$_N
echo
-e
"
\n
########
\n
"
fi
#
# Finish
#
echo
-e
"
\n
DTU Compute backup script
can always be started manually with the command:"
echo
-e
$G_
"comp-backup
\n
"
$_N
echo
-e
$P_
"
\n
Done setting up
DTU Compute backup script
!
\n
"
$_N
echo
-e
"The script can always be started manually with the command:"
$G_
"comp-backup
\n
"
$_N
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