Skip to content

Commit

Permalink
Fix location of NEMS_SERVER.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMSLinux committed Mar 23, 2024
1 parent 7c5f3da commit 11597f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion debpack/DEBIAN/control
Expand Up @@ -4,6 +4,6 @@ Priority: required
Section: migrator
Maintainer: NEMS Linux <nems@category5.tv>
Architecture: all
Version: 1.6.036
Version: 1.6.037
Provides: nems-migrator
Description: NEMS Migrator
19 changes: 12 additions & 7 deletions debpack/root/nems/nems-migrator/backup.sh
Expand Up @@ -5,7 +5,7 @@ ver=$(/usr/local/bin/nems-info nemsver)
if [[ $ver = "" ]]; then
echo Could not detect the version of your NEMS server. Is this NEMS Linux?
echo Cannot continue.
exit
exit 1
fi
if [[ $ver = "1.0" ]]; then
nagvis="maps/"
Expand All @@ -23,12 +23,17 @@ ver=$(/usr/local/bin/nems-info nemsver)
alias=$(/usr/local/bin/nems-info alias)
hwid=$(/usr/local/bin/nems-info hwid)
platformname=$(/usr/local/bin/nems-info platform-name)
echo "NEMS Server System Information" > /boot/NEMS_SERVER.txt
echo "------------------------------" >> /boot/NEMS_SERVER.txt
echo "Platform: $platformname" >> /boot/NEMS_SERVER.txt
echo "NEMS Linux Version: $ver" >> /boot/NEMS_SERVER.txt
echo "NEMS HWID: $hwid" >> /boot/NEMS_SERVER.txt
echo "NEMS Server Alias: $alias" >> /boot/NEMS_SERVER.txt
if [[ -d /boot/firmware ]]; then
infofile="/boot/firmware/NEMS_SERVER.txt"
else
infofile="/boot/NEMS_SERVER.txt"
fi
echo "NEMS Server System Information" > $infofile
echo "------------------------------" >> $infofile
echo "Platform: $platformname" >> $infofile
echo "NEMS Linux Version: $ver" >> $infofile
echo "NEMS HWID: $hwid" >> $infofile
echo "NEMS Server Alias: $alias" >> $infofile


# Only create a backup file every 30 minutes.
Expand Down

0 comments on commit 11597f6

Please sign in to comment.