Skip to content

Commit a0c7e16

Browse files
authored
Merge pull request #120 from Drazzilb08/dev
Last minute bug fixes
2 parents c1052fc + 41bbcfe commit a0c7e16

9 files changed

+24
-29
lines changed

Dockerfile

+3-8
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,14 @@ ENV TZ=America/Los_Angeles
4747
ENV BRANCH=${BRANCH}
4848
ENV DOCKER_ENV=true
4949

50-
# Install curl, unzip, p7zip-full, tzdata, vim, rclone and docker-cli - remove curl and clean up
51-
# Delete unnecessary setup files
50+
#
51+
#
5252
RUN set -eux; \
5353
rm -f Pipfile Pipfile.lock; \
5454
apt-get update; \
55-
apt-get install -y --no-install-recommends wget curl unzip p7zip-full tzdata vim jdupes jq nano; \
55+
apt-get install -y --no-install-recommends wget curl unzip p7zip-full tzdata jdupes jq; \
5656
curl https://rclone.org/install.sh | bash
5757

58-
RUN apt-get update; \
59-
apt-get install -y --no-install-recommends docker.io; \
60-
docker --version
61-
62-
VOLUME /var/run/docker.sock
6358
VOLUME /config
6459
VOLUME /data
6560

extra-scripts/backup_appdata.sample.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ exclusion_list=(
3939
# "Container 2"
4040
# "Container 3"
4141
"plex"
42-
"userScripts"
42+
"daps"
4343
)
4444

4545
# Define locations for appdata directories

extra-scripts/backup_appdata.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -562,20 +562,20 @@ send_notification() {
562562
# Get a random joke from the specified file
563563
# Check if the webhook is for discord
564564
if [[ "$webhook" =~ ^https://discord\.com/api/webhooks/ ]]; then
565-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
565+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
566566
discord_common_fields
567567
bot_name="Notification Bot"
568568
# Call the discord_payload function to construct the payload
569569
if [ ${#new_container[@]} -gt 0 ]; then
570-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
570+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
571571
new_container_notification
572572
new_container_response=$(curl -s -H "Content-Type: application/json" -X POST -d "$payload" "$webhook")
573573
if [ "$dry_run" == "true" ]; then
574574
echo "$new_container_response"
575575
fi
576576
fi
577577
if [ ${#removed_containers[@]} -gt 0 ]; then
578-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
578+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
579579
removed_container_notification
580580
removed_container=$(curl -s -H "Content-Type: application/json" -X POST -d "$payload" "$webhook")
581581
if [ "$dry_run" == "true" ]; then
@@ -594,19 +594,19 @@ send_notification() {
594594
fi
595595
# Check if the webhook is for notifiarr
596596
if [[ $webhook =~ ^https://notifiarr\.com/api/v1/notification/passthrough ]]; then
597-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
597+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
598598
notifiarr_common_fields
599599
# Call the notifiarr_payload function to construct the payload
600600
if [ ${#new_container[@]} -gt 0 ]; then
601-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
601+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
602602
new_container_notification
603603
new_container_response=$(curl -s -H "Content-Type: application/json" -X POST -d "$payload" "$webhook")
604604
if [ "$dry_run" == "true" ]; then
605605
echo "$new_container_response"
606606
fi
607607
fi
608608
if [ ${#removed_containers[@]} -gt 0 ]; then
609-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
609+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
610610
removed_container_notification
611611
removed_container=$(curl -s -H "Content-Type: application/json" -X POST -d "$payload" "$webhook")
612612
if [ "$dry_run" == "true" ]; then

extra-scripts/backup_folder.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ send_notification() {
202202
# Get current time in UTC format
203203
get_ts=$(date -u -Iseconds)
204204
# Get a random joke from the specified file
205-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
205+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
206206
# Check if the webhook is for discord
207207
if [[ $webhook =~ ^https://discord\.com/api/webhooks/ ]]; then
208208
# Call the discord_payload function to construct the payload

extra-scripts/backup_plex.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ field_builder() {
223223
build_payload(){
224224
get_ts=$(date -u -Iseconds)
225225
# Get a random joke from the specified file
226-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
226+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
227227
# ensure joke is valid for json
228228
# shellcheck disable=SC2001
229229
joke=$(echo "$joke" | sed 's/"/\\"/g')

scripts/jduparr.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ hex_to_decimal() {
180180

181181
send_notification() {
182182
get_ts=$(date -u -Iseconds)
183-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
183+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
184184
if [ -n "$webhook" ]; then
185185
if [[ "$webhook" =~ ^https://discord\.com/api/webhooks/ ]]; then
186186
discord_common_fields

scripts/nohl_bash.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ check_hardlinks() {
157157
# Function to send notification
158158
send_notification() {
159159
# Get a random joke from a file hosted on Github
160-
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/userScripts/master/jokes.txt | shuf -n 1)
160+
joke=$(curl -s https://raw.githubusercontent.com/Drazzilb08/daps/master/jokes.txt | shuf -n 1)
161161
# Get the current timestamp
162162
get_ts=$(date -u -Iseconds)
163163
number_of_issues=0

start.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ VERSION=$(cat "$(dirname "$0")/VERSION")
1212

1313
echo "
1414
---------------------------------------------------------
15-
_____ _____ _____
16-
| __ \\ /\ | __ \\ / ____|
17-
| | | | / \\ | |__) | (___
18-
| | | |/ /\ \\ | ___/ \\___ \\
19-
| |__| / ____ \\| | ____) |
20-
|_____/_/ \_\\_| |_____/
15+
_____ _____ _____
16+
| __ \ /\ | __ \ / ____|
17+
| | | | / \ | |__) | (___
18+
| | | |/ /\ \ | ___/ \___ \
19+
| |__| / ____ \| | ____) |
20+
|_____/_/ \_\_| |_____/
2121
(Drazzilb's Arr PMM Scripts)
2222
2323
PUID: ${PUID}
@@ -42,15 +42,15 @@ usermod -o -u "$PUID" dockeruser
4242
# Download latest config files if they don't exist or are different
4343
file="config.sample.yml"
4444
local_file="$CONFIG_DIR/$file"
45-
if [ ! -f "$local_file" ] || [ "$(curl -s "https://raw.githubusercontent.com/Drazzilb08/userScripts/${BRANCH}/config/$file" | diff -q - "$local_file")" ]; then
45+
if [ ! -f "$local_file" ] || [ "$(curl -s "https://raw.githubusercontent.com/Drazzilb08/daps/${BRANCH}/config/$file" | diff -q - "$local_file")" ]; then
4646
echo "Downloading latest $file"
47-
curl -s "https://raw.githubusercontent.com/Drazzilb08/userScripts/${BRANCH}/config/$file" -o "$local_file"
47+
curl -s "https://raw.githubusercontent.com/Drazzilb08/daps/${BRANCH}/config/$file" -o "$local_file"
4848
else
4949
echo "File $file is up to date"
5050
fi
5151

5252

53-
echo "Starting userScripts as $(whoami) running userscripts with UID: $PUID and GID: $PGID"
53+
echo "Starting daps as $(whoami) running daps with UID: $PUID and GID: $PGID"
5454

5555
chown -R ${PUID}:${PGID} /${CONFIG_DIR} /app > /dev/null 2>&1
5656
chmod -R 777 /${CONFIG_DIR} > /dev/null 2>&1

util/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def version_check(logger, branch):
3333
script_version = f.read().strip()
3434

3535
# Construct the URL for the GitHub raw file containing the version
36-
github_url = f"https://raw.githubusercontent.com/Drazzilb08/userScripts/{branch}/VERSION"
36+
github_url = f"https://raw.githubusercontent.com/Drazzilb08/daps/{branch}/VERSION"
3737

3838
# Send a GET request to the GitHub URL to fetch the script's version from GitHub
3939
response = requests.get(github_url)

0 commit comments

Comments
 (0)