On sync, add trailing slash to rsync command
This commit is contained in:
parent
80fb38d534
commit
505bdb9117
|
@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
* On sync, add trailing slash to rsync command
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
## [2.3.2] - 2020-05-03
|
## [2.3.2] - 2020-05-03
|
||||||
|
|
|
@ -29,7 +29,7 @@ fi
|
||||||
rsync -a "${jail_path}/" "${NODE}:${jail_path}/" --exclude proc/* --exclude sys/* --exclude dev/* --exclude run --exclude var/backup/*
|
rsync -a "${jail_path}/" "${NODE}:${jail_path}/" --exclude proc/* --exclude sys/* --exclude dev/* --exclude run --exclude var/backup/*
|
||||||
# Sync config (new structure)
|
# Sync config (new structure)
|
||||||
if [ -d "${jail_config_dir}" ]; then
|
if [ -d "${jail_config_dir}" ]; then
|
||||||
rsync -a --delete "${jail_config_dir}" "${NODE}:${jail_config_dir}"
|
rsync -a --delete "${jail_config_dir}/" "${NODE}:${jail_config_dir}/"
|
||||||
else
|
else
|
||||||
ssh "${NODE}" "rm -rf ${jail_config_dir}" | debug
|
ssh "${NODE}" "rm -rf ${jail_config_dir}" | debug
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue