summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-07 13:00:20 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-07 13:00:20 -0300
commit4aca03906c1acd7edfc1606c27b3471f431200e0 (patch)
treeaf03eca4c7b358be6a0ba18d388c1e164739db14 /install.sh
parent9c094744122ab2b5863060488b565e94db8e450e (diff)
Replaced entertainment_folder for media_folder
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/install.sh b/install.sh
index 3cd0751..e6913ea 100755
--- a/install.sh
+++ b/install.sh
@@ -85,18 +85,18 @@ else
send_error_message "The user $username doesn't exist!"
fi
-read -p "Please, input your entertainment folder: " entertainment_folder
+read -p "Please, input your media folder: " media_folder
# Checking that the entertainment folder exists
-realpath $entertainment_folder &>/dev/null || send_error_message "There was an error with your entertainment folder! The directory \"$entertainment_folder\" does not exist!"
+realpath $media_folder &>/dev/null || send_error_message "There was an error with your media folder! The directory \"$media_folder\" does not exist!"
-entertainment_folder=$(realpath $entertainment_folder)
+media_folder=$(realpath $media_folder)
-read -p "Are you sure your entertainment folder is $entertainment_folder? [y/N]: " entertainment_folder_correct
-entertainment_folder_correct=${entertainment_folder_correct:-"n"}
+read -p "Are you sure your media folder is $media_folder? [y/N]: " media_folder_correct
+media_folder_correct=${media_folder_correct:-"n"}
-if [ $entertainment_folder_correct == "n" ]; then
+if [ $media_folder_correct == "n" ]; then
send_error_message "Entertainment folder is not correct. Please, fix it and run the script again"
fi
@@ -119,8 +119,8 @@ sed -i -e "s/<your_PUID>/$puid/g" $filename
# Set PGID
sed -i -e "s/<your_PGID>/$pgid/g" $filename
-# Set entertainment_folder
-sed -i -e "s;<entertainment_folder>;$entertainment_folder;g" $filename
+# Set media_folder
+sed -i -e "s;<media_folder>;$media_folder;g" $filename
# Set yams script
sed -i -e "s;<filename>;$filename;g" yams