mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
small Dockerfiles improvements
remove a debug log from httpd_test
This commit is contained in:
@@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
chown -R "${PUID}:${GUID}" /data /etc/sftpgo /srv/sftpgo/config \
|
chown -R "${PUID}:${GUID}" /data /etc/sftpgo /srv/sftpgo/config /srv/sftpgo/backups \
|
||||||
&& exec su-exec "${PUID}:${GUID}" \
|
&& exec su-exec "${PUID}:${GUID}" \
|
||||||
/bin/sftpgo serve "$@"
|
/bin/sftpgo serve "$@"
|
||||||
|
|||||||
@@ -18,5 +18,5 @@ where `/srv/sftpgo/data`, `/srv/sftpgo/config` and `/srv/sftpgo/backups` are fo
|
|||||||
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
chown -R <UID>:<GID> /srv/sftpgo/data /srv/sftpgo/config
|
chown -R <UID>:<GID> /srv/sftpgo/data /srv/sftpgo/config /srv/sftpgo/backups
|
||||||
```
|
```
|
||||||
@@ -81,7 +81,6 @@ func TestMain(m *testing.M) {
|
|||||||
httpdConf.BackupsPath = "test_backups"
|
httpdConf.BackupsPath = "test_backups"
|
||||||
currentPath, _ := os.Getwd()
|
currentPath, _ := os.Getwd()
|
||||||
backupsPath = filepath.Join(currentPath, "..", httpdConf.BackupsPath)
|
backupsPath = filepath.Join(currentPath, "..", httpdConf.BackupsPath)
|
||||||
logger.DebugToConsole("aaa: %v", backupsPath)
|
|
||||||
os.MkdirAll(backupsPath, 0777)
|
os.MkdirAll(backupsPath, 0777)
|
||||||
|
|
||||||
sftpd.SetDataProvider(dataProvider)
|
sftpd.SetDataProvider(dataProvider)
|
||||||
|
|||||||
Reference in New Issue
Block a user