Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Commits
c3f22b1d
Commit
c3f22b1d
authored
12 years ago
by
alvaro
Browse files
Options
Downloads
Patches
Plain Diff
Ask for backup first
parent
92b76646
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/modules/update-lodspeakr.sh
+16
-0
16 additions, 0 deletions
utils/modules/update-lodspeakr.sh
with
16 additions
and
0 deletions
utils/modules/update-lodspeakr.sh
+
16
−
0
View file @
c3f22b1d
#!/bin/bash
#Check git
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
cd
$DIR
/../..
GIT
=
`
which git
`
...
...
@@ -8,6 +9,19 @@ if [ -z $GIT ];then
exit
1
fi
#Ask for backup
answer_backup
=
""
while
[
"
$answer_backup
"
!=
"y"
-a
"
$answer_backup
"
!=
"n"
]
;
do
echo
-n
"Do you want to create a backup of the current installation? [y/n]: "
read
-u
1 answer_backup
done
if
[
"
$answer_backup
"
=
"y"
]
;
then
echo
"Performing backup"
utils/lodspk.sh backup
fi
#Perform git pull
echo
Updating LODSPeaKr
$GIT
pull
-q
if
[
"
$?
"
!=
0
]
;
then
...
...
@@ -15,5 +29,7 @@ if [ "$?" != 0 ];then
exit
0
fi
#Update GUI
echo
Updating GUI elements
cp
-rf
doc/examples/originalComponents/static/admin/
*
components/static/admin/
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