remove duplicated service gogs restart in the update part
This commit is contained in:
parent
99f91504bf
commit
24052457bb
1 changed files with 6 additions and 6 deletions
12
gogs-root.sh
12
gogs-root.sh
|
@ -1,21 +1,21 @@
|
||||||
#!/bin/tcsh
|
#!/bin/tcsh
|
||||||
echo "FreeNAS Gogs installation script."
|
echo "FreeNAS Gogs installation script."
|
||||||
echo "This has been tested on:"
|
echo "This has been tested on:"
|
||||||
echo " 9.3-RELEASE-p5 FreeBSD 9.3-RELEASE-p5 #1"
|
echo " 9.3-RELEASE-p29 FreeBSD"
|
||||||
echo " f8ed4e8: Fri Dec 19 20:25:35 PST 2014"
|
echo
|
||||||
echo
|
echo
|
||||||
echo "Press any key to begin"
|
echo "Press any key to begin"
|
||||||
set jnk = $<
|
set jnk = $<
|
||||||
|
|
||||||
if ( -f /usr/locat/etc/rc.d/gogs ) then
|
if ( -f /usr/local/etc/rc.d/gogs ) then
|
||||||
echo "Updating Gogs..."
|
echo "Gogs Install found. Updating..."
|
||||||
echo
|
echo
|
||||||
# Stop Gogs service
|
# Stop Gogs service
|
||||||
service gogs stop
|
service gogs stop
|
||||||
gogs-compile.sh
|
./gogs-compile.sh
|
||||||
service gogs start
|
|
||||||
echo "Update Done!"
|
echo "Update Done!"
|
||||||
else
|
else
|
||||||
|
echo "Install Gogs from zero"
|
||||||
# 3) Enable SSH
|
# 3) Enable SSH
|
||||||
echo "Enabling SSH"
|
echo "Enabling SSH"
|
||||||
/usr/bin/sed -i '.bak' 's/sshd_enable="NO"/sshd_enable="YES"/g' /etc/rc.conf
|
/usr/bin/sed -i '.bak' 's/sshd_enable="NO"/sshd_enable="YES"/g' /etc/rc.conf
|
||||||
|
|
Reference in a new issue