Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 467d033e9b263674899f617d83a928f3 > files > 11

webmin-1.360-2.2mdv2008.0.src.rpm

--- ./setup.sh.gege	Wed Apr 25 19:01:42 2001
+++ ./setup.sh	Wed Apr 25 19:31:44 2001
@@ -447,6 +447,13 @@
 		grep logclear= $config_dir/miniserv.conf >> $config_dir/config
 	fi
 fi
+theme_value=`grep "^theme=" $config_dir/config | sed -e 's/theme=//g'`
+if [ -n "$theme_value" ]; then
+	root_value=`grep "^root=" $config_dir/miniserv.conf | sed -e 's/root=//g'`
+	echo "A theme is configured, updating miniserv config file (theme is $theme_value)"
+	echo "preroot=$root_value/$theme_value" >> $config_dir/miniserv.conf
+fi
+
 echo $ver > $config_dir/version
 echo "..done"
 echo ""