tsmall aesthetics - coffin - secure lan file storage on a device
 (HTM) git clone git://parazyd.org/coffin.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 285f102b38b479f81485a138875d8df782835bde
 (DIR) parent ebe752a86e5655b89cd104538252cfd8b0d5fba9
 (HTM) Author: parazyd <parazyd@dyne.org>
       Date:   Sat,  2 Apr 2016 12:43:32 +0200
       
       small aesthetics
       
       Diffstat:
         M src/zlibs/features                  |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/zlibs/features b/src/zlibs/features
       t@@ -4,12 +4,13 @@ create-webdav-hook() {
                fn create-webdav-hook
        
                davconf="/etc/apache2/sites-available/coffindav.conf"
       +        davpass="/etc/apache2/DAV/davpasswd"
        
                if [[ $entry =~ webdav && -f $COFFINDOT/webdav.conf ]]; then
                        act "Found WebDAV data. Setting up..."
        
                        [[ -f $COFFINDOT/davpasswd ]] && {
       -                        cat $COFFINDOT/davpasswd >> /etc/apache2/davpasswd
       +                        cat $COFFINDOT/davpasswd >> $davpass
                                [[ $? = 0 ]] && {
                                        rm $COFFINDOT/davpasswd
                                        gpasswd -a www-data $undertaker # NOTE: consider standalone group
       t@@ -49,7 +50,7 @@ create-sshfs-hook() {
                if [[ $entry =~ sshfs && -f $COFFINDOT/sshpubkey ]]; then
                        act "Found SSH data. Setting up..."
        
       -                mkdir -p /home/$undertaker/.ssh
       +                [[ -d /home/$undertaker/.ssh ]] || mkdir -p /home/$undertaker/.ssh
                        cat $COFFINDOT/$tombid.pub >> /home/$undertaker/.ssh/authorized_keys
                        chown -R $undertaker:$undertaker /home/$undertaker/.ssh
                        chmod 700 /home/$undertaker/.ssh && chmod 600 /home/$undertaker/.ssh/authorized_keys