Permission fixes?

master
MrTyton 3 years ago
parent d5c1b37d21
commit c0153d551f

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

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

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

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