SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-#* * * * * runuser -l toolbox -c '/usr/bin/php /application/artisan schedule:run' > /proc/1/fd/1 2>/proc/1/fd/2
-#20 5 * * * /application/scripts/restartworkers > /proc/1/fd/1 2>/proc/1/fd/2
+#10 * * * * stats /data1/stats/www/FWStats.sh /data1/stats/www 1000000
+
+20 * * * * root lynx --dump https://workshop.fluidbook.com/maintenance/cleanDownload >/dev/null 2>/dev/null
+0 2 * * * root lynx --dump https://workshop.fluidbook.com/maintenance/deleteOldFilesFromFTP >/dev/null 2>/dev/null
+0 5 * * * root lynx --dump https://workshop.fluidbook.com/maintenance/cleanCompiledBooks >/dev/null 2>/dev/null
+40 * * * * root lynx --dump https://workshop.fluidbook.com/maintenance/cleanPackages >/dev/null 2>/dev/null
+0 1 * * * root lynx --dump https://workshop.fluidbook.com/maintenance/cleanConversionSessions >/dev/null 2>/dev/null
+
+24 4 * * * root /application/bin/fixrights >/dev/null 2>/dev/null
+*/5 * * * * root /application/bin/fixpackagerrights >/dev/null 2>/dev/null
+35 3 * * * root /application/bin/compresslogs >/dev/null 2>/dev/null
+10 * * * * root /application/bin/cleantmp >/dev/null 2>/dev/null
- '/home/extranet/www/.docker/config/sudoers:/etc/sudoers.d/extranet'\r
# PHP\r
- '/home/extranet/www/.docker/config/php.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini'\r
+ - '/home/extranet/sessions/:/var/lib/php/sessions/'\r
# Crontab\r
- '/home/extranet/www/.docker/config/crontab:/etc/crontab'\r
# Files\r
RUN apt-get -y --no-install-recommends install default-jre pdftk poppler-utils inkscape mupdf-tools ghostscript imagemagick netpbm libjpeg-turbo8 libjpeg-turbo-progs
RUN apt-get -y --no-install-recommends install zip unzip gzip 7zip
RUN apt-get -y --no-install-recommends install icoutils fontforge icnsutils
-RUN apt-get -y --no-install-recommends install ffmpeg python3 lame x264 vorbis-tools
+RUN apt-get -y --no-install-recommends install ffmpeg lame x264 vorbis-tools
RUN apt-get -y --no-install-recommends install inkscape mupdf-tools librsvg2-bin
RUN apt-get -y --no-install-recommends install cron monit locate
RUN apt-get -y --no-install-recommends install build-essential chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
RUN apt-get -y --no-install-recommends install libreoffice
RUN apt-get -y --no-install-recommends install sshfs lftp
+RUN apt-get -y --no-install-recommends install sshfs python3 python3-pip
RUN cd /root;wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2;tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2;mv phantomjs-2.1.1-linux-x86_64 /usr/local/share;ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
RUN cd /root;wget https://github.com/nwutils/Web2Executable/releases/download/v0.7.1b/Web2ExeLinux-CMD.zip;unzip Web2ExeLinux-CMD.zip;mv Web2ExeLinux-CMD /usr/local/web2exe
RUN cd /root;wget https://github.com/RazrFalcon/svgcleaner/releases/download/v0.9.5/svgcleaner_linux_x86_64_0.9.5.tar.gz; tar xvzf svgcleaner_linux_x86_64_0.9.5.tar.gz;mv svgcleaner /usr/local/bin
-
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
+ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
+RUN npm install --unsafe-perm --global uglify-js less sass puppeteer favicons nw-builder@3.5.7
+RUN pip3 install font-line
+
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
RUN groupadd fluidbook;groupadd sudo;useradd -d /application -g 33 -G sudo -s /bin/bash -u 1002 extranet
-ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
-RUN npm install --unsafe-perm --global uglify-js less sass puppeteer favicons nw-builder@3.5.7
# PHP-FPM packages need a nudge to make them docker-friendly
COPY overrides.conf /etc/php/7.2/fpm/pool.d/z-overrides.conf
# RewriteCond %{HTTP_HOST} extranet.cubedesigners.com\r
# RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\r
\r
+ RewriteRule ^.docker - [F]\r
+ RewriteRule ^bin - [F]\r
+ RewriteRule ^scripts - [F]\r
+\r
RewriteRule (.{255,}) index.php/$1 [L,QSA]\r
\r
RewriteRule ^download - [L]\r
--- /dev/null
+#!/bin/sh
+find /tmp/. -type f -mmin +60 -delete
+find /var/lib/php/sessions/. -type f -mtime +21 -delete
+find /tmp -maxdepth 1 -name "cubeit_*" -type d -exec rm -rf {} \;
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+gzip -f -9 /application/fluidbook/docs/*/logs/*.log
\ No newline at end of file
--- /dev/null
+#!/bin/bash
+chmod -R 777 /usr/local/web2exe
+mkdir -p /application/fluidbook/packager/download
+mkdir -p /application/fluidbook/packager/nwbuild
+chmod -R 777 /application/fluidbook/packager
+chown -R extranet:www-data /application/fluidbook/packager
+chmod -R 777 /tmp
+chown -R extranet:www-data /tmp
\ No newline at end of file
--- /dev/null
+#!/bin/bash
+chmod -R 775 /application
+chmod -R 777 /application/fluidbook/compile/player
+chmod 600 /application/.ssh/id_rsa
+chmod 700 /application/.ssh
+chmod 600 /application/.ssh/authorized_keys2
+chown -R extranet:www-data /application
}
}
- public static function cleanUnusedDocs()
- {
- global $core;
- cubePHP::neverStop();
- }
-
-
// public static function mergeEntreprise($args)
// {
// global $core;