Use a more recent version of HTMLy
This commit is contained in:
parent
1b983df895
commit
0ad36480e4
|
@ -8919,8 +8919,6 @@ function install_blog {
|
||||||
|
|
||||||
cd /var/www/$FULLBLOG_DOMAIN_NAME
|
cd /var/www/$FULLBLOG_DOMAIN_NAME
|
||||||
git clone https://github.com/danpros/htmly htdocs
|
git clone https://github.com/danpros/htmly htdocs
|
||||||
# This is a workaround until a better solution
|
|
||||||
git checkout 4842796 -b tempbranch
|
|
||||||
chown -R www-data:www-data /var/www/$FULLBLOG_DOMAIN_NAME/htdocs
|
chown -R www-data:www-data /var/www/$FULLBLOG_DOMAIN_NAME/htdocs
|
||||||
|
|
||||||
if [ ! -f /etc/ssl/certs/$FULLBLOG_DOMAIN_NAME.dhparam ]; then
|
if [ ! -f /etc/ssl/certs/$FULLBLOG_DOMAIN_NAME.dhparam ]; then
|
||||||
|
@ -9130,10 +9128,11 @@ function install_blog {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create a user
|
# create a user
|
||||||
cp /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/username.ini.example /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
echo ';Password' > /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
||||||
HASHED_BLOG_PASSWORD="$(echo -n $FULLBLOG_ADMIN_PASSWORD | sha256sum | awk -F ' ' '{print $1}')"
|
echo "password = '$FULLBLOG_ADMIN_PASSWORD'" >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
||||||
sed -i "s|yourpassword|$HASHED_BLOG_PASSWORD|g" /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
echo 'encryption = clear' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
||||||
sed -i 's/encryption = clear/encryption = "sha256"/g' /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
echo ';Role' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
||||||
|
echo 'role = admin' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini
|
||||||
|
|
||||||
nginx_ensite $FULLBLOG_DOMAIN_NAME
|
nginx_ensite $FULLBLOG_DOMAIN_NAME
|
||||||
service php5-fpm restart
|
service php5-fpm restart
|
||||||
|
@ -9956,8 +9955,8 @@ function create_upgrade_script {
|
||||||
echo " cd /var/www/$FULLBLOG_DOMAIN_NAME/htdocs" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
echo " cd /var/www/$FULLBLOG_DOMAIN_NAME/htdocs" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
||||||
echo ' git stash' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
echo ' git stash' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
||||||
echo ' git stash drop' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
echo ' git stash drop' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
||||||
echo ' #git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
echo ' git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
||||||
echo " #chown -R www-data:www-data /var/www/$FULLBLOG_DOMAIN_NAME/htdocs" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
echo " chown -R www-data:www-data /var/www/$FULLBLOG_DOMAIN_NAME/htdocs" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
||||||
echo 'fi' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
echo 'fi' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
||||||
echo '' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
echo '' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
||||||
echo "if grep -Fxq \"install_owncloud_music_app\" $COMPLETION_FILE; then" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
echo "if grep -Fxq \"install_owncloud_music_app\" $COMPLETION_FILE; then" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
|
||||||
|
|
Loading…
Reference in New Issue