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
cf73a43d
Commit
cf73a43d
authored
12 years ago
by
alvaro
Browse files
Options
Downloads
Patches
Plain Diff
Adding update option
parent
94da9b31
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
utils/lodspk.sh
+9
-1
9 additions, 1 deletion
utils/lodspk.sh
utils/modules/update-lodspeakr.sh
+19
-0
19 additions, 0 deletions
utils/modules/update-lodspeakr.sh
with
28 additions
and
1 deletion
utils/lodspk.sh
+
9
−
1
View file @
cf73a43d
...
...
@@ -32,6 +32,8 @@ USAGE=$USAGE" Remove any variable:\t\t\t\t\t$0 remove variable\n"
USAGE
=
$USAGE
" If the variable is part of LODSPeaKr, it will return to its default value
\n
"
USAGE
=
$USAGE
"
\n
===ADMIN USER===
\n
"
USAGE
=
$USAGE
" Change password:
\t\t\t\t\t
$0
change password NEWPASSWORD
\n
"
USAGE
=
$USAGE
"
\n
===UPDATE===
\n
"
USAGE
=
$USAGE
" Update LODSPeaKr:
\t\t\t\t\t
$0
update
\n
"
USAGE
=
$USAGE
"
\n
===VERSION==
\n
"
USAGE
=
$USAGE
" Version:
\t\t\t\t\t\t
$0
version
\n
"
USAGEDEBUG
=
"Usage:
$0
debug on|off"
...
...
@@ -41,7 +43,7 @@ if [[ $# -eq 0 || "$1" == "--help" ]]; then
fi
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
operations
=(
create delete debug backup restore default cache version
enable
disable add remove list details change
)
operations
=(
create delete debug backup restore default cache version
enable
disable add remove list details change
update
)
currentOperation
=
if
[[
${
operations
[@]
}
=
~
$1
]]
;
then
...
...
@@ -325,3 +327,9 @@ if [[ $currentOperation == "change" ]]; then
php
$DIR
/modules/change-password.php
$3
exit
fi
## Update
if
[[
$currentOperation
==
"update"
]]
;
then
$DIR
/modules/update-lodspeakr.sh
exit
fi
This diff is collapsed.
Click to expand it.
utils/modules/update-lodspeakr.sh
0 → 100755
+
19
−
0
View file @
cf73a43d
#!/bin/bash
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
cd
$DIR
/../..
GIT
=
`
which git
`
if
[
-z
$GIT
]
;
then
echo
"No git found. Aborting"
exit
1
fi
echo
Updating LODSPeaKr
$GIT
pull
-q
if
[
"
$?
"
!=
0
]
;
then
echo
"Update couldn't finish properly. Stopping further actions"
exit
0
fi
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