Deploy: Set `umask 077` before deploying systemd unit

This commit is contained in:
Mike Salvatore 2022-04-10 14:34:10 -04:00
parent f42a3bdaad
commit 3aa6d4a119
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ ExecStart="${MONKEY_BIN}/${APPIMAGE_NAME}"
WantedBy=multi-user.target
EOF
umask 077
sudo mv "${SCRIPT_DIR}/${SYSTEMD_UNIT_FILENAME}" "${SYSTEMD_DIR}/${SYSTEMD_UNIT_FILENAME}"
sudo systemctl enable "${SYSTEMD_UNIT_FILENAME}" &>/dev/null