[evolvis-commits] r7874: Don' t change welcome message if message file i?==?UTF-8?Q?s there↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 15:52:09 CET 2011


Author: mirabilos
Date: 2011-02-24 15:52:09 +0100 (Thu, 24 Feb 2011)
New Revision: 7874

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/deb-specific/install-ftp.sh
Log:
Don't change welcome message if message file is there


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/deb-specific/install-ftp.sh
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/deb-specific/install-ftp.sh	2011-02-24 14:52:08 UTC (rev 7873)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/deb-specific/install-ftp.sh	2011-02-24 14:52:09 UTC (rev 7874)
@@ -33,7 +33,8 @@
     configure)
 	adduser --quiet --system --group --home $FTPROOT sfftp
 	mkdir -p $FTPROOT/pub
-	cat >$FTPROOT/welcome.msg<<-FIN
+	if [ ! -f $FTPROOT/welcome.msg ] ; then
+		cat >$FTPROOT/welcome.msg<<-FIN
 Welcome, archive user %U@%R !
 
 The local time is: %T
@@ -41,6 +42,7 @@
 This is an experimental FTP server.  If have any unusual problems,
 please report them via e-mail to <root@%L>.
 FIN
+	fi
 	invoke-rc.d proftpd restart
 	;;
 



More information about the evolvis-commits mailing list