Permission fixes?

This commit is contained in:
MrTyton 2022-03-26 10:19:32 -04:00
parent d5c1b37d21
commit c0153d551f
4 changed files with 11 additions and 7 deletions

View File

@ -38,12 +38,7 @@ RUN echo "**** install calibre ****" && \
apt-get install -y calibre && \
dbus-uuidgen > /etc/machine-id
RUN echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
RUN echo "**** s6 omsta;; ****" && \
set -ex && \
ARCH=`uname -m` && \
@ -67,6 +62,12 @@ RUN echo *** Install Packages *** && \
fi && \
python3 -m pip --no-cache-dir install pushbullet.py pillow && \
ln -s /opt/calibre/calibredb /bin/calibredb
RUN echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
COPY root/ /

View File

@ -1 +1 @@
2022.03.26-05
2022.03.26-06

View File

@ -147,6 +147,7 @@ def downloader(args):
moving = ""
except BaseException:
# story is not in calibre
output += log("\tStory is not in Calibre", 'WARNING', live)
cur = url
moving = 'cd "{}" && '.format(loc)
copyfile("/config/personal.ini", "{}/personal.ini".format(loc))
@ -434,6 +435,7 @@ if __name__ == "__main__":
if not (options.user or options.password):
raise ValueError("User or Password not given")
print(options)
main(
options.user,
options.password,

View File

@ -5,5 +5,6 @@ usermod -o -u "$PUID" abc
chown -R abc:abc /app
chown -R abc:abc /config
chown -R abc:abc /root
chmod +x /app/run.sh