Browse Source

small Dockerfiles improvements

remove a debug log from httpd_test
Nicola Murino 5 years ago
parent
commit
e5770af2fa

+ 1 - 1
docker/sftpgo/alpine/docker-entrypoint.sh

@@ -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 "$@"

+ 1 - 1
docker/sftpgo/debian/README.md

@@ -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
 ```

+ 0 - 1
httpd/httpd_test.go

@@ -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)