Skip to content

Commit

Permalink
Changed /downloads ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
h8pewou authored Apr 17, 2021
1 parent fe695af commit 624e273
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ RUN rm -rf /var/www/html/*
RUN cd /tmp; git clone https://github.com/codepoet80/metube-php-servicewrapper
RUN mv /tmp/metube-php-servicewrapper/* /var/www/html/
RUN wget https://raw.githubusercontent.com/h8pewou/legacy_webos/main/metube-webos-config.php -O /var/www/html/config.php
RUN echo "find /downloads -amin +60 -exec rm -f {} \;" > /etc/cron.hourly/youtube-cleanup

# Downloads clean-up
RUN mkdir /downloads/
RUN chown -R www-data:www-data /downloads/
RUN echo "find /downloads/*.mp4 -amin +60 -exec rm -f {} \;" > /etc/cron.hourly/youtube-cleanup
RUN chmod a+rx /etc/cron.hourly/youtube-cleanup

# Configure apache
Expand Down

0 comments on commit 624e273

Please sign in to comment.