修复生成脚本中的路径错误

This commit is contained in:
wlx 2013-10-11 01:34:00 +00:00
parent e5172936f0
commit 88c058854c
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@
{ {
$row = pg_fetch_array($result, $ri); $row = pg_fetch_array($result, $ri);
$content.='# path: '.$row['path']."\n"; $content.='# path: '.$row['path']."\n";
$content.='mkdir -p "/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 "'.$row['path'].'" "/home/ftp/westdc_'.$row['userid'].'/'.preg_replace('/^.+[\\\\\\/]/', '', rtrim($basepath.'wsn_'.$row['userid'],'/')).'"'."\n"; $content.='mount --bind "'.$basepath.'wsn_'.$row['userid'].'" "/home/ftp/westdc_'.$row['userid'].'/wsn_'.$row['userid'].'"'."\n";
} }
$filename='./proftp-user.sh'; $filename='./proftp-user.sh';