Skip to content

Commit

Permalink
webmin: make reconfigure webmin be able to work
Browse files Browse the repository at this point in the history
when move a file, test if this file exist or not

Signed-off-by: Roy Li <[email protected]>
Signed-off-by: Martin Jansa <[email protected]>
  • Loading branch information
Roy Li authored and shr-project committed Jul 24, 2014
1 parent f06154f commit c1c5442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ do_configure() {
rm -rf stunnel squid sarg pptp-client pptp-server jabber openslp sentry cluster-* vgetty burner heartbeat

# Adjust configs
mv init/config-debian-linux init/config-generic-linux
[ -f init/config-debian-linux ] && mv init/config-debian-linux init/config-generic-linux
sed -i "s/shutdown_command=.*/shutdown_command=poweroff/" init/config-generic-linux
echo "exclude=bootmisc.sh,single,halt,reboot,hostname.sh,modutils.sh,mountall.sh,mountnfs.sh,networking,populate-volatile.sh,rmnologin.sh,save-rtc.sh,umountfs,umountnfs.sh,hwclock.sh,checkroot.sh,banner.sh,udev,udev-cache,devpts.sh,psplash.sh,sendsigs,fbsetup,bootlogd,stop-bootlogd,sysfs.sh,syslog,syslog.busybox,urandom,webmin,functions.initscripts,read-only-rootfs-hook.sh" >> init/config-generic-linux
echo "excludefs=devpts,devtmpfs,usbdevfs,proc,tmpfs,sysfs,debugfs" >> mount/config-generic-linux

mv exports/config-debian-linux exports/config-generic-linux
[ -f exports/config-debian-linux ] && mv exports/config-debian-linux exports/config-generic-linux
sed -i "s/killall -HUP rpc.nfsd && //" exports/config-generic-linux
sed -i "s/netstd_nfs/nfsserver/g" exports/config-generic-linux

Expand Down

0 comments on commit c1c5442

Please sign in to comment.