small Dockerfiles improvements

remove a debug log from httpd_test
This commit is contained in:
Nicola Murino 2019-12-27 23:54:45 +01:00
parent ae094d3479
commit e5770af2fa
3 changed files with 2 additions and 3 deletions

View file

@ -2,6 +2,6 @@
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}" \
/bin/sftpgo serve "$@"

View file

@ -18,5 +18,5 @@ where `/srv/sftpgo/data`, `/srv/sftpgo/config` and `/srv/sftpgo/backups` are fo
```bash
chown -R <UID>:<GID> /srv/sftpgo/data /srv/sftpgo/config
chown -R <UID>:<GID> /srv/sftpgo/data /srv/sftpgo/config /srv/sftpgo/backups
```

View file

@ -81,7 +81,6 @@ func TestMain(m *testing.M) {
httpdConf.BackupsPath = "test_backups"
currentPath, _ := os.Getwd()
backupsPath = filepath.Join(currentPath, "..", httpdConf.BackupsPath)
logger.DebugToConsole("aaa: %v", backupsPath)
os.MkdirAll(backupsPath, 0777)
sftpd.SetDataProvider(dataProvider)