Browse Source

Only create default admin username and password on initial installation

master
Michael Schloh von Bennewitz 23 years ago committed by Ralf S. Engelschall
parent
commit
c6f1cbbb61
  1. 12
      dss/dss.spec

12
dss/dss.spec

@ -293,10 +293,12 @@ AutoReqProv: no
rm -rf $RPM_BUILD_ROOT
%post
# write a default admin username and password to qtusers
username='ghandi'; password='india'
$RPM_INSTALL_PREFIX/bin/qtpasswd -p $password $username
if [ $1 -eq 1 ]; then
# after install, write default admin username and password to qtusers
username='ghandi'; password='india'
$RPM_INSTALL_PREFIX/bin/qtpasswd -p $password $username
# add the new admin username to {l_prefix}/etc/dss/qtgroupsusers
echo "admin: $username" >$RPM_INSTALL_PREFIX/etc/dss/qtgroups
# add the new admin username to {l_prefix}/etc/dss/qtgroupsusers
echo "admin: $username" >$RPM_INSTALL_PREFIX/etc/dss/qtgroups
fi

Loading…
Cancel
Save