Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Update 4.2.1
Browse files Browse the repository at this point in the history
- High Sierra Support for SUS
- Fixed an issue with tftp block size in NetBoot
- Cosmetic update for AFP & SMB Settings pages
  • Loading branch information
duncan-mccracken committed Sep 20, 2017
1 parent ee8bbdb commit 8006530
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 7 deletions.
9 changes: 7 additions & 2 deletions NetBoot/netbootInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,21 @@ fi
# Configure tftp
if [ -f "/etc/default/tftpd-hpa" ]; then
sed -i 's:/var/lib/tftpboot:/srv/NetBoot/NetBootSP0:' /etc/default/tftpd-hpa
sed -i 's:TFTP_OPTIONS=.*:TFTP_OPTIONS="--secure --blocksize 1460":' /etc/default/tftpd-hpa
fi
if [ -f "/etc/xinetd.d/tftp" ]; then
sed -i 's:/var/lib/tftpboot:/srv/NetBoot/NetBootSP0:' /etc/xinetd.d/tftp
sed -i '/server_args/ s/= -s/= --blocksize 1460 -s/' /etc/xinetd.d/tftp
sed -i '/disable/ s/yes/no/' /etc/xinetd.d/tftp
fi
if [ -f "/usr/lib/systemd/system/tftp.service" ]; then
sed -i 's:/var/lib/tftpboot:/srv/NetBoot/NetBootSP0:' /usr/lib/systemd/system/tftp.service
sed -i 's:ExecStart=.*:ExecStart=/usr/sbin/in.tftpd --blocksize 1460 -s /srv/NetBoot/NetBootSP0:' /usr/lib/systemd/system/tftp.service
fi
if [ -f "/lib/systemd/system/tftp.service" ]; then
sed -i 's:/var/lib/tftpboot:/srv/NetBoot/NetBootSP0:' /lib/systemd/system/tftp.service
sed -i 's:ExecStart=.*:ExecStart=/usr/sbin/in.tftpd --blocksize 1460 -s /srv/NetBoot/NetBootSP0:' /lib/systemd/system/tftp.service
fi
if [ -f "/usr/lib/systemd/system/tftp.service" ] || [ -f "/lib/systemd/system/tftp.service" ]; then
systemctl daemon-reload
fi

# Create netboot directories
Expand Down
4 changes: 4 additions & 0 deletions SUS/susInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ if [ -f "/etc/apache2/sites-enabled/000-default.conf" ]; then
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/index-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/16
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/index-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/17
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
</IfModule>
</VirtualHost>
Expand Down Expand Up @@ -140,6 +142,8 @@ if [ -f "/etc/httpd/conf/httpd.conf" ]; then
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/index-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/16
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/index-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/17
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
</IfModule>
ZHEREDOC
# Remove empty <IfModule mod_rewrite.c> sections
Expand Down
5 changes: 4 additions & 1 deletion SUS/var/lib/reposado/reposadolib/reposadocommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ def pref(prefname):
'.merged-1.sucatalog'),
('https://swscan.apple.com/content/catalogs/others/'
'index-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-'
'leopard.merged-1.sucatalog')
'leopard.merged-1.sucatalog'),
('https://swscan.apple.com/content/catalogs/others/'
'index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-'
'leopard.merged-1.sucatalog'),
],
'PreferredLocalizations': ['English', 'en'],
'CurlPath': '/usr/bin/curl'
Expand Down
4 changes: 4 additions & 0 deletions docs/sus.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ Branch URLs vary depending on the operating system of enrolled computers. Exampl

http://sus.mycompany.corp/content/catalogs/others/index-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1_<Branch Name>.sucatalog

**macOS v10.13**

http://sus.mycompany.corp/content/catalogs/others/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1_<Branch Name>.sucatalog

### Running Software Update on Computers

For instructions on using the Casper Suite to run Software Update on computers that are managed by the JSS, see the “Running Software Update” section in the Casper Suite Administrator’s Guide.
Expand Down
2 changes: 2 additions & 0 deletions webadmin/var/www/webadmin/AFP.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ function validateafpPW()
<br><br>
-->

<span class="label label-default">AFP Password</span>

<label class="control-label">New Password</label>
<input type="password" placeholder="Required" name="afppass1" id="afppass1" class="form-control input-sm" value="" onClick="validateafpPW();" onKeyUp="validateafpPW();" onChange="validateafpPW();" />

Expand Down
2 changes: 2 additions & 0 deletions webadmin/var/www/webadmin/SMB.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ function validatePW()
<br><br>
-->

<span class="label label-default">SMB Password</span>

<label class="control-label">New Password</label>
<input type="password" placeholder="Required" name="smbpass1" id="smbpass1" class="form-control input-sm" value="" onClick="validatePW();" onKeyUp="validatePW();" onChange="validatePW();" />

Expand Down
2 changes: 1 addition & 1 deletion webadmin/var/www/webadmin/inc/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a id="version-number-text" class="navbar-brand text-muted">NetSUS 4.2.0</a>
<a id="version-number-text" class="navbar-brand text-muted">NetSUS 4.2.1</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
Expand Down
11 changes: 8 additions & 3 deletions webadmin/webadminInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if [ -f "/etc/ntp/step-tickers" ]; then
echo $currentTimeServer >> /etc/ntp/step-tickers
fi
else
currentTimeServer=$(cat /etc/cron.daily/ntpdate 2>/dev/null | awk '{print $2}')
currentTimeServer=$(cat /etc/cron.daily/ntpdate 2>/dev/null | awk '{print $NF}')
if [[ $currentTimeServer == "" ]]; then
echo "server 0.ubuntu.pool.ntp.org" > /etc/cron.daily/ntpdate
fi
Expand Down Expand Up @@ -141,8 +141,13 @@ if [ ! -f "/var/appliance/conf/appliance.conf.xml" ]; then
if [[ $shelluser == "" ]] || [[ $shelluser == "root" ]]; then
shelluser=shelluser
if [[ $(getent passwd shelluser) == "" ]]; then
useradd -c 'shelluser' -d /home/shelluser -G wheel -m -s /bin/bash shelluser
sed -i '/NOPASSWD/!s/.*%wheel/%wheel/' /etc/sudoers
if [[ $(getent group wheel) == "" ]]; then
groupadd shelluser
useradd -d /home/shelluser -g shelluser -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare -m -s /bin/bash shelluser
else
useradd -c 'shelluser' -d /home/shelluser -G wheel -m -s /bin/bash shelluser
sed -i '/NOPASSWD/!s/.*%wheel/%wheel/' /etc/sudoers
fi
fi
fi
mkdir -p /var/appliance/conf/
Expand Down

0 comments on commit 8006530

Please sign in to comment.