[Lunar-commits] CVS: moonbase/net/maradns PRE_BUILD, NONE,
1.1 POST_INSTALL, 1.2, 1.3 POST_REMOVE, 1.3, 1.4
Auke Kok
sofar at lunar-linux.org
Mon Mar 28 12:15:45 UTC 2005
Update of /var/cvs/lunar/moonbase/net/maradns
In directory espresso.foo-projects.org:/tmp/cvs-serv28473
Modified Files:
POST_INSTALL POST_REMOVE
Added Files:
PRE_BUILD
Log Message:
Cleanups: please don't use 'useradd'
--- NEW FILE: PRE_BUILD ---
default_pre_build &&
cp ${SCRIPT_DIRECTORY}/lunar_install.locations build/
Index: POST_INSTALL
===================================================================
RCS file: /var/cvs/lunar/moonbase/net/maradns/POST_INSTALL,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- POST_INSTALL 19 Jan 2004 12:58:39 -0000 1.2
+++ POST_INSTALL 28 Mar 2005 12:15:42 -0000 1.3
@@ -5,14 +5,11 @@
echo "# Hide annoying disclaimer from mararc file" >> ${MARARC}
echo "hide_disclaimer=\"YES\" " >> ${MARARC}
-if ! id -u maradns ; then
- useradd maradns &&
- echo "maradns user created"
-fi
+add_priv_user maradns:maradns
MUID=`id -u maradns` &&
sed -i "s/^maradns_uid.*/maradns_uid = $MUID/g" ${MARARC} &&
message "maradns UID set in sample ${MARARC} file. Please do not change this variable."
message "Do not forget to update firewall settings and resolv.conf if needed."
-
\ No newline at end of file
+
Index: POST_REMOVE
===================================================================
RCS file: /var/cvs/lunar/moonbase/net/maradns/POST_REMOVE,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- POST_REMOVE 19 Jan 2004 12:58:39 -0000 1.3
+++ POST_REMOVE 28 Mar 2005 12:15:42 -0000 1.4
@@ -1,3 +1,2 @@
rm /etc/mararc
rm -rf /etc/maradns
-userdel maradns
More information about the Lunar-commits
mailing list