Atualizar ProxySync_install.sh
This commit is contained in:
parent
352ddc1705
commit
339ef6e9a1
|
|
@ -161,8 +161,6 @@ else
|
||||||
while IFS= read -r path_to_sync || [ -n "$path_to_sync" ]; do
|
while IFS= read -r path_to_sync || [ -n "$path_to_sync" ]; do
|
||||||
if [ -z "$path_to_sync" ] || $(echo "$path_to_sync" | grep -q '^#'); then continue; fi
|
if [ -z "$path_to_sync" ] || $(echo "$path_to_sync" | grep -q '^#'); then continue; fi
|
||||||
if [ -e "$path_to_sync" ]; then
|
if [ -e "$path_to_sync" ]; then
|
||||||
# Para o pfSense, a única config que realmente importa é o config.xml.
|
|
||||||
# RSync é mais complexo, para um único arquivo, 'cp' é mais simples.
|
|
||||||
if [ "$path_to_sync" = "/cf/conf/config.xml" ]; then
|
if [ "$path_to_sync" = "/cf/conf/config.xml" ]; then
|
||||||
log_info "Sincronizando /cf/conf/config.xml para a raiz do repositório."
|
log_info "Sincronizando /cf/conf/config.xml para a raiz do repositório."
|
||||||
cp "$path_to_sync" "$REPO_PATH/config.xml"
|
cp "$path_to_sync" "$REPO_PATH/config.xml"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue