beta #2
@@ -26,9 +26,9 @@ RUN sed -i "s/{{DOMAIN}}/${DOMAIN}/g" /etc/apache2/sites-available/${DOMAIN}.con
|
|||||||
a2ensite ${DOMAIN}.conf && \
|
a2ensite ${DOMAIN}.conf && \
|
||||||
a2enmod rewrite
|
a2enmod rewrite
|
||||||
|
|
||||||
# Cloner Hubzilla dans /var/www/html
|
# Installer Hubzilla
|
||||||
RUN rm -rf /var/www/html && \
|
RUN git clone https://framagit.org/hubzilla/core.git /tmp/hubzilla && \
|
||||||
git clone https://framagit.org/hubzilla/core.git /var/www/html && \
|
mv /tmp/hubzilla /var/www/html && \
|
||||||
cd /var/www/html && \
|
cd /var/www/html && \
|
||||||
util/add_addon_repo https://framagit.org/hubzilla/addons.git official && \
|
util/add_addon_repo https://framagit.org/hubzilla/addons.git official && \
|
||||||
mkdir -p store/[data]/smarty3 && \
|
mkdir -p store/[data]/smarty3 && \
|
||||||
@@ -56,8 +56,7 @@ RUN echo "upload_max_filesize = 20M" >> /etc/php/8.2/apache2/php.ini && \
|
|||||||
COPY src/.htconfig.php /tmp/.htconfig.php
|
COPY src/.htconfig.php /tmp/.htconfig.php
|
||||||
RUN LOCATION_HASH=$(cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 64 | head -n 1) && \
|
RUN LOCATION_HASH=$(cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 64 | head -n 1) && \
|
||||||
sed "s/{{DOMAIN}}/${DOMAIN}/g; s/{{LOCATION_HASH}}/${LOCATION_HASH}/g; s/{{ADMIN_EMAIL}}/${ADMIN_EMAIL}/g" /tmp/.htconfig.php > /var/www/html/.htconfig.php && \
|
sed "s/{{DOMAIN}}/${DOMAIN}/g; s/{{LOCATION_HASH}}/${LOCATION_HASH}/g; s/{{ADMIN_EMAIL}}/${ADMIN_EMAIL}/g" /tmp/.htconfig.php > /var/www/html/.htconfig.php && \
|
||||||
chown www-data:www-data /var/www/html/.htconfig.php && \
|
chown www-data:www-data /var/www/html/.htconfig.php
|
||||||
rm /tmp/.htconfig.php
|
|
||||||
|
|
||||||
# Cron
|
# Cron
|
||||||
RUN echo "*/15 * * * * cd /var/www/html; /usr/bin/php Zotlabs/Daemon/Master.php Cron" | crontab -u www-data -
|
RUN echo "*/15 * * * * cd /var/www/html; /usr/bin/php Zotlabs/Daemon/Master.php Cron" | crontab -u www-data -
|
||||||
|
|||||||
Reference in New Issue
Block a user