ssfs rev 64

ssfs-server: add command up-vdisk
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jun 12 23:23:57 2011 +0200 (2011-06-12)
parents 291d7b317507
children aa620b69c929
files ssfs-server
line diff
     1.1 --- a/ssfs-server	Sun Jun 12 23:18:04 2011 +0200
     1.2 +++ b/ssfs-server	Sun Jun 12 23:23:57 2011 +0200
     1.3 @@ -60,6 +60,7 @@
     1.4    gen-vdisk     $(gettext "Create a vdisk with chroot for files storage.")
     1.5    clean-vdisk   $(gettext "Clean the vdisk but skip home and root.")
     1.6    check-vdisk   $(gettext "Check the vdisk filesystem with e2fsck.")
     1.7 +  up-vdisk      $(gettext "Update a vdisk filesystem.")
     1.8    mount-vdisk   $(gettext "Mount a ssfs virtual disk.")
     1.9    umount-vdisk  $(gettext "Unmount the vdisk and free loop device.")
    1.10    note          $(gettext "Write a public note for users.")
    1.11 @@ -285,7 +286,6 @@
    1.12  		status
    1.13  
    1.14  		gettext "Setting files permissions..."
    1.15 -		chmod 0640 $root/etc/*shadow
    1.16  		chmod 0700 $root/root
    1.17  		chmod 4755 $root/bin/busybox
    1.18  		chmod 0600 $root/etc/busybox.conf
    1.19 @@ -340,6 +340,9 @@
    1.20  		gettext "Remounting vdisk read/write..."
    1.21  		mount -o remount,loop,rw $vdisk $root && status
    1.22  		separator && echo "" ;;
    1.23 +	up-vdisk)
    1.24 +		$0 clean-vdisk
    1.25 +		$0 gen-vdisk ;;
    1.26  	clean-vdisk)
    1.27  		# clean up the vdisk storage chroot.
    1.28  		if [ ! -d "$root/bin" ] || [ ! -d "$root/lib" ]; then