Skip to content
Snippets Groups Projects
Commit ccb2cbee authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove zip file

parent f01b5f56
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,12 @@ function upgrade_gogs { ...@@ -140,7 +140,12 @@ function upgrade_gogs {
exit 37823 exit 37823
fi fi
cp -r $INSTALL_DIR/gogs /home/$GOGS_USERNAME cp -r $INSTALL_DIR/gogs /home/$GOGS_USERNAME
rm linux_${CURR_ARCH}.tar.gz if [ -f linux_${CURR_ARCH}.tar.gz ]; then
rm linux_${CURR_ARCH}.tar.gz
fi
if [ -f linux_${CURR_ARCH}.zip ]; then
rm linux_${CURR_ARCH}.zip
fi
sed -i "s|Gogs version.*|Gogs version:$GOGS_VERSION|g" $COMPLETION_FILE sed -i "s|Gogs version.*|Gogs version:$GOGS_VERSION|g" $COMPLETION_FILE
systemctl restart gogs systemctl restart gogs
...@@ -366,7 +371,12 @@ function install_gogs { ...@@ -366,7 +371,12 @@ function install_gogs {
exit 37823 exit 37823
fi fi
cp -r $INSTALL_DIR/gogs /home/$GOGS_USERNAME cp -r $INSTALL_DIR/gogs /home/$GOGS_USERNAME
rm linux_${CURR_ARCH}.tar.gz if [ -f linux_${CURR_ARCH}.tar.gz ]; then
rm linux_${CURR_ARCH}.tar.gz
fi
if [ -f linux_${CURR_ARCH}.zip ]; then
linux_${CURR_ARCH}.zip
fi
if [ ! -f /home/$GOGS_USERNAME/gogs ]; then if [ ! -f /home/$GOGS_USERNAME/gogs ]; then
echo 'Gogs binary not installed' echo 'Gogs binary not installed'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment