mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
remove update script
This commit is contained in:
22
install.sh
22
install.sh
@@ -4,12 +4,22 @@ set -e
|
||||
|
||||
bash preinstall.sh
|
||||
|
||||
# If docker-compose is installed and if docker-compose.yml is found then, stop the stack.
|
||||
if [[ $(which docker-compose) ]]; then
|
||||
if [ -f ./docker-compose.yml ]; then
|
||||
sudo -E docker-compose -f docker-compose.yml stop || true
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Revert all local changes
|
||||
git reset
|
||||
git checkout .
|
||||
|
||||
# Pull latest changes
|
||||
git pull
|
||||
|
||||
docker-compose pull
|
||||
|
||||
echo "Stopping the stack!"
|
||||
sudo -E docker-compose -f docker-compose.yml stop || true
|
||||
|
||||
# echo "Checking if async migrations are up to date"
|
||||
# sudo -E docker-compose run init
|
||||
|
||||
npm run start
|
||||
|
||||
|
||||
35
update.sh
35
update.sh
@@ -1,35 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "Updating OneUptime. This will cause a few minutes of downtime. If you would like to avoid downtime, please consider installing this on a Kubernetes cluster."
|
||||
read -r -p "Do you want to update OneUptime? [y/N] " response
|
||||
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]
|
||||
then
|
||||
echo "OK!"
|
||||
else
|
||||
exit
|
||||
fi
|
||||
|
||||
bash preinstall.sh
|
||||
|
||||
# Revert all local changes
|
||||
git reset
|
||||
git checkout .
|
||||
|
||||
# Pull latest changes
|
||||
git pull
|
||||
|
||||
docker-compose pull
|
||||
|
||||
echo "Stopping the stack!"
|
||||
docker-compose stop
|
||||
|
||||
# echo "Checking if async migrations are up to date"
|
||||
# sudo -E docker-compose run init
|
||||
|
||||
echo "OK, Restarting the stack!"
|
||||
npm run start
|
||||
|
||||
|
||||
echo "OneUptime updated successfully!"
|
||||
Reference in New Issue
Block a user