Atualizar Instal-Proxy-Sinc.sh
This commit is contained in:
parent
5075fcdb55
commit
03de846f28
|
|
@ -138,7 +138,7 @@ git commit -m "[Deploy] ${ACTION_TYPE} por ${DEPLOYER_ID} em ${SERVER_HOSTNAME}"
|
|||
git push origin main
|
||||
info "Registo de deploy enviado para o Gitea."
|
||||
|
||||
# --- 5. Instalar/Atualizar os Ficheiros de Serviço ---
|
||||
# --- 5. Gerar os Ficheiros do Serviço ---
|
||||
info "A gerar e a instalar os ficheiros do serviço..."
|
||||
|
||||
if [ ! -f "$PATHS_FILE" ]; then
|
||||
|
|
@ -267,7 +267,7 @@ WantedBy=timers.target
|
|||
EOF
|
||||
|
||||
# Gera a nova man page
|
||||
cat > "/tmp/proxy-sinc.8" << 'EOF'
|
||||
cat > "$MAN_DIR/proxy-sinc.8" << 'EOF'
|
||||
.TH PROXY-SINC 8 "Setembro 2025" "iT Guys - Equipa de Infraestrutura" "Ferramentas de Sistema"
|
||||
.SH NAME
|
||||
proxy-sinc \- Serviço de versionamento automático de configurações de servidor
|
||||
|
|
@ -317,15 +317,8 @@ O script que gere a auto-atualização do serviço.
|
|||
EOF
|
||||
|
||||
# --- 7. Mover e Instalar ---
|
||||
chmod +x ./commit_configs.sh
|
||||
chmod +x ./proxy-sinc-update
|
||||
mv ./commit_configs.sh "$SCRIPT_INSTALL_DIR/"
|
||||
mv ./proxy-sinc-update "$SCRIPT_INSTALL_DIR/"
|
||||
mv ./proxy-sinc.service "$SYSTEMD_DIR/"
|
||||
mv ./proxy-sinc.timer "$SYSTEMD_DIR/"
|
||||
mv ./proxy-sinc-update.service "$SYSTEMD_DIR/"
|
||||
mv ./proxy-sinc-update.timer "$SYSTEMD_DIR/"
|
||||
mv "/tmp/proxy-sinc.8" "$MAN_DIR/"
|
||||
chmod +x "$SCRIPT_INSTALL_DIR/commit_configs.sh"
|
||||
chmod +x "$SCRIPT_INSTALL_DIR/proxy-sinc-update"
|
||||
gzip -f "$MAN_DIR/proxy-sinc.8"
|
||||
info "Ficheiros instalados com sucesso."
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue