修复生成脚本中的路径错误
This commit is contained in:
parent
e5172936f0
commit
88c058854c
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue