Skip to content

Commit

Permalink
Merge pull request #6 from alhdo/main
Browse files Browse the repository at this point in the history
fix  dir ownwer
  • Loading branch information
alhdo authored Oct 6, 2023
2 parents b2e2204 + 611a83b commit fd31045
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions retrieve/templates/linux/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ create_user() {
abort "No command found to add a user"
fi
fi
# test -e "$LOG_DIR" || mkdir -p "$LOG_DIR"
# test -e /var/lib/rport/scripts || mkdir -p /var/lib/rport/scripts
# chown "${USER}":root "$LOG_DIR"
# chown "${USER}":root /var/lib/rport/scripts
# chmod 0700 /var/lib/rport/scripts
# chown "${USER}":root "$CONFIG_FILE"
# chmod 0640 "$CONFIG_FILE"
# chown root:root /usr/local/bin/rport
# chmod 0755 /usr/local/bin/rport
test -e "$LOG_DIR" || mkdir -p "$LOG_DIR"
test -e /var/lib/rport/scripts || mkdir -p /var/lib/rport/scripts
chown "${USER}":root "$LOG_DIR"
chown "${USER}":root /var/lib/rport/scripts
chmod 0700 /var/lib/rport/scripts
chown "${USER}":root "$CONFIG_FILE"
chmod 0640 "$CONFIG_FILE"
chown root:root /usr/local/bin/rport
chmod 0755 /usr/local/bin/rport
}

set_file_and_dir_owner() {
Expand Down

0 comments on commit fd31045

Please sign in to comment.