/[docman2]/migrate.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /migrate.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dpavlin, Wed Jun 11 02:32:13 2003 UTC revision 1.2 by dpavlin, Wed Jun 11 02:54:44 2003 UTC
# Line 66  fi Line 66  fi
66    
67  if [ ! -w "$docman2_realm" ] ; then  if [ ! -w "$docman2_realm" ] ; then
68          echo "FATAL: $docman2_realm is not writable by current user..."          echo "FATAL: $docman2_realm is not writable by current user..."
69            echo "(this is needed to create configuration files there)"
70          exit 1          exit 1
71  fi  fi
72    
73    if [ ! -w "$dir" -a ! -w "$dir/.html" ] ; then
74            echo "FATAL: $dir is not writable by current user..."
75            echo "(we needed to create new DocumentRoot dir $dir/.html; you can create"
76            echo "$dir/.html directory writable to current user manually)"
77            exit 1
78    fi
79    
80    
81  #  #
82  # begin real move  # begin real move
83  #  #
# Line 114  cat $dir/.htusers > $f Line 123  cat $dir/.htusers > $f
123  f="$docman2_realm/$http_virtual_host.trustee"  f="$docman2_realm/$http_virtual_host.trustee"
124  echo "creating $f"  echo "creating $f"
125  cat $docman2_realm/localhost.trustee.dist > $f  cat $docman2_realm/localhost.trustee.dist > $f
126    #
127    # add some permissions
128    #
129    echo "#
130    # this will give all permissions to all users (to emulate docman 1.x
131    # behaviour) -- you *WILL WANT* to change this!
132    /:*:RWB
133    #" >> $f
134    
135  #  #
136  # now, create new .html directory which will be DocumentRoot  # now, create new .html directory which will be DocumentRoot
# Line 137  echo -n "remove old $docman1_ver files ( Line 154  echo -n "remove old $docman1_ver files (
154  read rm_old  read rm_old
155  if [ "$rm_old" = "y" -o -z "$rm_old" ] ; then  if [ "$rm_old" = "y" -o -z "$rm_old" ] ; then
156          rm $dir/$docman_php $dir/.docman.conf $dir/.htusers          rm $dir/$docman_php $dir/.docman.conf $dir/.htusers
157    else
158            echo "remove files manually: $dir/$docman_php $dir/.docman.conf $dir/.htusers"
159  fi  fi
160  echo "migration done..."  echo "migration done..."

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26