From fbc6ee7443ce9ee8743f1ec0b94c7326b0dfd07e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 19 Apr 2018 05:25:22 +0000 Subject: [PATCH] add note on swap space for upgrades --- install.bash | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install.bash b/install.bash index 482fbcf..f21d676 100644 --- a/install.bash +++ b/install.bash @@ -23,12 +23,22 @@ ln -sf gitea-$VER /opt/gitea/gitea sudo wget -O /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/master/dist/etc/systemd/system/gitea.service # Start gitea -sudo systemctl restart gitea sudo systemctl enable gitea +## If this is performing an upgrade it may need extra ram for a limited time +# fallocate -l 1G /tmp.swap +# mkswap /tmp.swap +# chmod 0600 /tmp.swap +# swapon /tmp.swap +sudo systemctl restart gitea + echo "" echo "Please visit http://localhost:3000/ now to finish installing gitea" echo "" echo "You may customize gitea" echo " templates can be seen at https://github.com/go-gitea/gitea/tree/v$VER/templates" echo " app.ini.sample can be seen at https://github.com/go-gitea/gitea/blob/v$VER/custom/conf/app.ini.sample" + +# sleep 5 +# swapoff /tmp.swap +# rm /tmp.swap \ No newline at end of file