Skip to content

Instantly share code, notes, and snippets.

@lspg
Last active December 30, 2015 06:19
Show Gist options
  • Select an option

  • Save lspg/7788411 to your computer and use it in GitHub Desktop.

Select an option

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
nano /etc/jailkit/jk_init.ini
touch ~/my-blog.git/hooks/post-receive && chmod +x ~/my-blog.git/hooks/post-receive
nano ~/my-blog.git/hooks/post-receive
git init --bare ~/my-blog.git
#!/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
gem install jekyll rdiscount
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
easy_install Pygments
\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
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
[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