mirror of
https://gitlab.com/Shinobi-Systems/ShinobiCE.git
synced 2025-03-09 15:40:15 +00:00
Shinobi CE officially lands on Gitlab
This commit is contained in:
commit
f1406d4eec
431 changed files with 118157 additions and 0 deletions
24
UPDATE.sh
Normal file
24
UPDATE.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
distro=$1
|
||||
repo=$2
|
||||
if [ -z "$distro" ]; then
|
||||
distro='master'
|
||||
fi
|
||||
if [ -z "$repo" ]; then
|
||||
repo='ShinobiCCTV'
|
||||
fi
|
||||
if [ "$repo" = "ShinobiCCTV" ]; then
|
||||
productName="Shinobi Professional (Pro)"
|
||||
else
|
||||
productName="Shinobi Community Editon (CE)"
|
||||
fi
|
||||
git reset --hard
|
||||
git pull
|
||||
gitURL="https://github.com/$repo/Shinobi"
|
||||
gitVersionNumber=$(git rev-parse HEAD)
|
||||
theDateRightNow=$(date)
|
||||
rm version.json
|
||||
touch version.json
|
||||
chmod 755 version.json
|
||||
echo '{"Product" : "'"$productName"'" , "Branch" : "'"$distro"'" , "Version" : "'"$gitVersionNumber"'" , "Date" : "'"$theDateRightNow"'" , "Repository" : "'"$gitURL"'"}' > version.json
|
||||
echo "Restart Shinobi for updates to take effect."
|
Loading…
Add table
Add a link
Reference in a new issue