Skip to content
Permalink
Browse files

Add PATCH-000003 to nems-upgrade

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 16, 2019
1 parent 7e97249 commit f684e191f24ec10f6621752012ce6fba82455d83
Showing with 22 additions and 3 deletions.
  1. +22 −3 upgrade.sh
@@ -271,6 +271,7 @@ vm.swappiness = 10

if [[ $ver = "1.5" ]]; then
echo ""

if ! grep -q "PATCH-000001" /var/log/nems/patches.log; then
echo "PATCH-000001 is available."
echo "This patch reinstalls all check commands, fixing many issues."
@@ -280,10 +281,28 @@ vm.swappiness = 10
echo "Linux build for your platform, released after March 15, 2019."
read -r -p "Do you want to install this patch? [y/N] " PATCH000001
echo ""
if [[ $PATCH000001 =~ ^([yY][eE][sS]|[yY])$ ]]; then
/root/nems/nems-admin/nems-upgrade/patches/000001 && upgraded=1
fi
fi

if ! grep -q "PATCH-000003" /var/log/nems/patches.log; then
echo "PATCH-000003 is available."
echo "This patch changes your networking system to NetworkManager."
echo "This allows you to control your network interfaces as per the"
echo "instructions found at https://docs.nemslinux.com/networking"
echo "*** BACKUP FIRST *** You may lose access to your NEMS server."
echo "Alternatively you can just download a newer NEMS Linux build"
echo "for your platform, released after March 15, 2019."
read -r -p "Do you want to install this patch? [y/N] " PATCH000003
echo ""
fi

# Run the selected patches
if [[ $PATCH000001 =~ ^([yY][eE][sS]|[yY])$ ]]; then
/root/nems/nems-admin/nems-upgrade/patches/000001 && upgraded=1
fi
if [[ $PATCH000003 =~ ^([yY][eE][sS]|[yY])$ ]]; then
/root/nems/nems-admin/nems-upgrade/patches/000003 && upgraded=1
fi

fi

# ----------------------------------

0 comments on commit f684e19

Please sign in to comment.
You can’t perform that action at this time.