Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
username param
Browse files Browse the repository at this point in the history
  • Loading branch information
dkackman committed Nov 19, 2023
1 parent 53bf702 commit 791fd0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install.sh
Expand Up @@ -14,8 +14,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

# Get the username of the logged in user
# the service will run as the installing user
# change this line to run as a different user
USERNAME=$(whoami)
# pass the username as the first argument to the script
# default to logged in user if not supplied
USERNAME=${1:-$(logname)}

# Replace all instances of 'USERNAME' with the runas user's name
# in 'dlsync.service' and save as '/etc/systemd/system/dlsync.service'
Expand Down

0 comments on commit 791fd0e

Please sign in to comment.