2 # Upgrading script to AlternC 3.0.3
4 CONFIG_FILE="/usr/lib/alternc/functions.sh"
5 PATH=/sbin:/bin:/usr/sbin:/usr/bin
9 if [ ! -r "$CONFIG_FILE" ]; then
10 echo "Can't access $CONFIG_FILE."
14 if [ `id -u` -ne 0 ]; then
15 echo "3.0.3~b.sh must be launched as root"
22 ## This part create TMP dir if don't exist
23 function create_tmp_dir() {
25 while [ "$LOGIN" ]; do
26 echo "Check tmp directory for $LOGIN"
27 REP="$(get_html_path_by_name $LOGIN )/tmp/"
28 [[ "$REP" != "/tmp/" ]] && ( test -d "$REP" || mkdir $REP )
33 mysql_query "select login from membres order by login;" | create_tmp_dir