image: Fix monkey

This commit is contained in:
Artem Smirnov
2018-10-02 14:17:19 +03:00
parent 3a2ea23822
commit e13ca40a75
6 changed files with 6 additions and 18 deletions

View File

@@ -20,7 +20,7 @@
# Example:
# DocumentRoot /home/krypton/htdocs
DocumentRoot /root/monkey-static
DocumentRoot /usr/share/monkey-static
# Redirect:
# ---------

View File

@@ -86,7 +86,7 @@ ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} exec ${SCRIPTS_DIR}'/image-init.sh'
# Monkey
${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/monkey-clever' '/root/'
${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/index.html' '/root/monkey-static/'
${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/index.html' '/usr/share/monkey-static/'
# Butterfly
${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/butterfly.service' '/root/'

View File

@@ -96,7 +96,8 @@ ln -s /root/butterfly.socket /lib/systemd/system/
systemctl enable butterfly.socket
echo_stamp "Setup Monkey"
ln -s /root/monkey-clever /etc/monkey/sites/clever
mv /etc/monkey/sites/default /etc/monkey/sites/default.orig
ln -s /root/monkey-clever /etc/monkey/sites/default
echo_stamp "Add .vimrc"
cat << EOF > /home/pi/.vimrc