Permalink
Browse files

Samba Upgrades for NEMS 1.5

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 17, 2018
1 parent 87a7f96 commit 6ce5d58c6eec6439fb80555c764c5cef9cef7082
Showing with 9 additions and 1 deletion.
  1. +6 −1 build/155-samba
  2. +3 −0 nems-upgrade/1.4.1-1.5
@@ -1,5 +1,10 @@
#!/bin/bash
systemctl stop smbd
cp /root/nems/nems-migrator/data/samba/smb.conf /etc/samba/
cp /root/nems/nems-migrator/data/1.5/samba/smb.conf /etc/samba/
init=$(/usr/local/bin/nems-info init)
if [[ $init == 1 ]]; then
username=$(/usr/local/bin/nems-info username)
/bin/sed -i -- 's/nemsadmin/'"$username"'/g' /etc/samba/smb.conf
fi
systemctl start smbd

@@ -48,6 +48,9 @@ if [[ "$ver" == "1.4.1" ]]; then
## Install MOTD
/root/nems/nems-admin/build/230-motd

## Configure samba
/root/nems/nems-admin/build/155-samba

else
echo "Cannot uprade NEMS $ver to 1.5."
fi

0 comments on commit 6ce5d58

Please sign in to comment.