[csw-devel] SF.net SVN: gar:[6465] csw/mgar/pkg/gitosis/trunk/Makefile
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Fri Sep 25 02:50:13 CEST 2009
Revision: 6465
http://gar.svn.sourceforge.net/gar/?rev=6465&view=rev
Author: bdwalton
Date: 2009-09-25 00:50:13 +0000 (Fri, 25 Sep 2009)
Log Message:
-----------
gitosis: add postinstall code to migrate shell to csw bash if required
Modified Paths:
--------------
csw/mgar/pkg/gitosis/trunk/Makefile
Modified: csw/mgar/pkg/gitosis/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gitosis/trunk/Makefile 2009-09-25 00:16:38 UTC (rev 6464)
+++ csw/mgar/pkg/gitosis/trunk/Makefile 2009-09-25 00:50:13 UTC (rev 6465)
@@ -17,6 +17,13 @@
/usr/bin/passwd -N gitosis
+# in case the gitosis package was still using /bin/bash.
+/usr/bin/getent passwd gitosis | /usr/xpg4/bin/grep -q ':/bin/bash'
+if [ $$? -eq 0 ]; then
+ echo Updating shell for gitosis account to /opt/csw/bin/bash.
+ /usr/sbin/usermod -s /opt/csw/bin/bash gitosis
+fi
+
echo See $(docdir)/$(GARNAME)/README.csw for first use instructions.
endef
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list