Last active
December 30, 2015 06:19
-
-
Save lspg/7788411 to your computer and use it in GitHub Desktop.
Shell commands to add Jekyll to ISPConfig chrooted (with Jailkit) users shells.
http://blog.kctus.fr/2013/11/29/ispconfig-jekyll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nano /etc/jailkit/jk_init.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| touch ~/my-blog.git/hooks/post-receive && chmod +x ~/my-blog.git/hooks/post-receive | |
| nano ~/my-blog.git/hooks/post-receive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git init --bare ~/my-blog.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| GIT_REPO=~/my-blog.git | |
| TMP_GIT_CLONE=~/my-blog | |
| PUBLIC_WWW=/web | |
| export LANG=fr_FR.UTF-8 | |
| source /usr/local/rvm/scripts/rvm | |
| git clone $GIT_REPO $TMP_GIT_CLONE | |
| jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW --trace > ~/jekyll.log | |
| rm -Rf $TMP_GIT_CLONE | |
| exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem install jekyll rdiscount |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python | |
| easy_install Pygments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \curl -L https://get.rvm.io | bash -s stable --rails | |
| source ~/.rvm/scripts/rvm | |
| echo 'source /usr/local/rvm/scripts/rvm' >> ~/.bashrc | |
| echo 'source /usr/local/rvm/scripts/rvm' >> /usr/local/ispconfig/server/conf/bash.bashrc.master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jk_cp /var/www/clients/user1 /usr/local/rvm /usr/bin/which /bin/uname /usr/bin/env | |
| jk_cp /var/www/clients/user1 /usr/local/lib/python2.7 /usr/bin/python /usr/bin/python2.7 \ | |
| /etc/python2.7 /etc/python /usr/lib/python2.7 /usr/lib/python2.6 /usr/bin/X11/python2.7 \ | |
| /usr/bin/X11/python /usr/local/lib/python2.7 /usr/include/python2.7 /usr/share/python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [kernel] | |
| comment = kernel | |
| executables = /bin/uname, /usr/bin/which | |
| [python] | |
| comment = python | |
| executables = /usr/bin/python /usr/bin/python2.7 | |
| directories = /usr/local/lib/python2.7 /usr/lib/python2.7 /usr/lib/python2.6 /usr/bin/X11/python2.7 /usr/bin/X11/python /usr/local/lib/python2.7 /usr/include/python2.7 /usr/share/python | |
| [ruby] | |
| comment = ruby | |
| executables = /usr/bin/env, /usr/local/rvm/rubies/ruby-2.0.0-p353/bin/ruby | |
| directories = /usr/local/rvm | |
| includesections = kernel | |
| [jekyll] | |
| comment = jekyll | |
| executables = /usr/local/rvm/gems/ruby-2.0.0-p353/bin/jekyll | |
| includesections = python, ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment