Fix missing pre-login Unix identity on installation and upgrades
This commit is contained in:
@@ -10,6 +10,7 @@ with tempfile.TemporaryDirectory(prefix='mars-deb-') as tmp:
|
||||
def copy(src,dst,mode=0o644):
|
||||
target=stage/dst;target.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(root/src,target);target.chmod(mode)
|
||||
for name in ('mars_vme','mars-pcapd','mars-print'):copy('build/'+name,'usr/local/sbin/'+name,0o755)
|
||||
copy('packaging/ensure-default-identity.py','usr/local/libexec/mars-ensure-default-identity',0o755)
|
||||
copy('packaging/mars-ipxpkt-net','usr/local/libexec/mars-ipxpkt-net',0o755)
|
||||
copy('dos-compat-export.py','usr/local/sbin/mars-dos-export',0o755)
|
||||
copy('install-driver-packages.py','usr/local/libexec/mars-install-drivers',0o755)
|
||||
@@ -48,6 +49,7 @@ if [ "$1" = configure ]; then
|
||||
umask 077
|
||||
printf '2 MARS\\n3 0x12345678 1\\n1 SYS /var/mars_nwe/SYS ikO\\n6 2\\n5 0\\n200 0\\n' > /usr/local/etc/mars_nwe/nwserv.conf
|
||||
fi
|
||||
python3 /usr/local/libexec/mars-ensure-default-identity /usr/local/etc/mars_nwe/nwserv.conf
|
||||
if [ ! -s /var/lib/mars_nwe/bindery/nwobj.pag ]; then
|
||||
install -d -m 0700 /var/lib/mars_nwe/bindery
|
||||
touch /var/lib/mars_nwe/bindery/.mars-fixed-width-v1
|
||||
|
||||
Reference in New Issue
Block a user