Skip to content

Commit

Permalink
Automate database default push
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Nov 13, 2018
1 parent 048cb3e commit 09414a2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,29 @@ vm.swappiness = 10

fi

# Upgrade from NEMS 1.4.1 to NEMS 1.5
if [[ $ver = "1.4.1" ]]; then

echo "Upgrading from NEMS $ver to NEMS 1.5"

echo "Not yet supported."
exit

# Backup and restore (to migrate to new database)
cp /var/www/html/backup/snapshot/backup.nems /tmp/
/usr/local/bin/nems-restore /tmp/backup.nems force

# Update NEMS to know this is version 1.2.2
echo "Changing version to 1.5..."
oldver=$ver
ver="1.5"
sed -i -e "s/$oldver/$ver/g" /usr/local/share/nems/nems.conf
echo "Done."

echo ""
upgraded=1

fi


# ----------------------------------
Expand Down

0 comments on commit 09414a2

Please sign in to comment.