Skip to content

Commit

Permalink
Update wireguard-manager.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Prajwal Koirala <102563715+Prajwal-Koirala@users.noreply.github.com>
  • Loading branch information
Prajwal-Koirala committed Dec 5, 2023
1 parent b112ec2 commit 0f801d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wireguard-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1278,9 +1278,9 @@ PublicKey = ${SERVER_PUBKEY}" >>${WIREGUARD_CLIENT_PATH}/"${CLIENT_NAME}"-${WIRE
# Change ownership of WireGuard configuration directory to root
chown --recursive root:root ${WIREGUARD_PATH}
# Set the correct permissions for the WireGuard configuration directory
find ${WIREGUARD_PATH} -type d -exec chmod 755 {} +
find ${WIREGUARD_PATH} -type d -exec chmod 700 {} +
# Set the correct permissions for the WireGuard configuration file
find ${WIREGUARD_PATH} -type f -exec chmod 644 {} +
find ${WIREGUARD_PATH} -type f -exec chmod 600 {} +
# Set up automatic WireGuard expiration (if enabled)
if [ "${AUTOMATIC_WIREGUARD_EXPIRATION}" == true ]; then
crontab -l | {
Expand Down

0 comments on commit 0f801d0

Please sign in to comment.