diff --git a/tools/proftp.php b/tools/proftp.php index f7afe158..f7ec1c9e 100644 --- a/tools/proftp.php +++ b/tools/proftp.php @@ -52,8 +52,8 @@ { $row = pg_fetch_array($result, $ri); $content.='# path: '.$row['path']."\n"; - $content.='mkdir -p "/home/ftp/westdc_'.$row['userid'].'/'.preg_replace('/^.+[\\\\\\/]/', '', rtrim($basepath.'wsn_'.$row['userid'],'/')).'"'."\n"; - $content.='mount --bind "'.$row['path'].'" "/home/ftp/westdc_'.$row['userid'].'/'.preg_replace('/^.+[\\\\\\/]/', '', rtrim($basepath.'wsn_'.$row['userid'],'/')).'"'."\n"; + $content.='mkdir -p "/home/ftp/westdc_'.$row['userid'].'/wsn_'.$row['userid'].'"'."\n"; + $content.='mount --bind "'.$basepath.'wsn_'.$row['userid'].'" "/home/ftp/westdc_'.$row['userid'].'/wsn_'.$row['userid'].'"'."\n"; } $filename='./proftp-user.sh';