Compare commits

...
This repository has been archived on 2023-08-13. You can view files and clone it, but cannot push or open issues or pull requests.

3 Commits

3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# NAS Server # NAS Server (OBSOLETE)
This repository contains files used to set up our NAS server on a freshly installed Armbian. Target is Bullseye. This repository contains files used to set up our NAS server on a freshly installed Armbian. Target is Bullseye.

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
run_directory=$(dirname "$0") run_directory=$(dirname $(readlink -f "$0"))
source "$run_directory/variables.conf" source "$run_directory/variables.conf"
@ -16,7 +16,7 @@ sudo sed -i -e "s/PH_USER/$user/g" /etc/systemd/system/transmission-daemon.servi
sudo sed -i -e "s/PH_PASSWORD/$password/g" /etc/systemd/system/transmission-daemon.service sudo sed -i -e "s/PH_PASSWORD/$password/g" /etc/systemd/system/transmission-daemon.service
sudo sed -i -e "s:PH_DL_LOCATION:$dl_location:g" /etc/systemd/system/transmission-daemon.service sudo sed -i -e "s:PH_DL_LOCATION:$dl_location:g" /etc/systemd/system/transmission-daemon.service
sudo cp $run_directory/transmission-vpn.service /etc/systemd/system/ sudo cp $run_directory/transmission-vpn.service /etc/systemd/system/
sudo sed -i -e "s:PH_DIRECTORY:$run_directory:g" /etc/systemd/system/transmission-vpn.service sudo sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/transmission-vpn.service
sudo cp $run_directory/transmission-vpn.timer /etc/systemd/system/ sudo cp $run_directory/transmission-vpn.timer /etc/systemd/system/
echo "Reloading Systemd..." echo "Reloading Systemd..."

View File

@ -9,7 +9,7 @@
# We can enter an infinite loop, but this will effectively prevent transmission from connecting # We can enter an infinite loop, but this will effectively prevent transmission from connecting
# If both services are stopped, this script will never be run by error # If both services are stopped, this script will never be run by error
run_directory=$(dirname "$0") run_directory=$(dirname $(readlink -f "$0"))
source "$run_directory/variables.conf" source "$run_directory/variables.conf"
# Parameters # Parameters