Skip to content

Commit

Permalink
console/rsync_server: Move rsyncd.conf contents to data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucha committed Aug 24, 2023
1 parent 6e44e94 commit 56eeb86
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
14 changes: 14 additions & 0 deletions data/console/rsyncd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
max connections = 2
log file = /var/log/rsync.log
timeout = 300

[pub]
comment = Testing files available for download
read only = yes
list = yes
path = /srv/rsync_test/pub
uid = nobody
gid = nobody
auth users = test42
secrets file = /etc/rsyncd.secrets

19 changes: 1 addition & 18 deletions tests/console/rsync_server.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,7 @@ sub run {
select_console 'root-console';

#preparation of rsync config files
script_run 'cat > /etc/rsyncd.conf <<EOF
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[pub]
comment = Testing files available for download
read only = yes
list = yes
path = /srv/rsync_test/pub
uid = nobody
gid = nobody
auth users = test42
secrets file = /etc/rsyncd.secrets
EOF
true';

assert_script_run('curl -v -o /etc/rsyncd.conf ' . data_url('console/rsyncd.conf'));
assert_script_run 'echo "test42:424242" > /etc/rsyncd.secrets';

if (is_sle('<12-sp5')) { #using xinetd on sle 12
Expand Down

0 comments on commit 56eeb86

Please sign in to comment.