-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomize
executable file
·41 lines (31 loc) · 1.15 KB
/
customize
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/bash
#
# Put customizations to your image in this file.
# Custom versions and variables
PATH=/opt/local/gnu/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin
# Munin plugins
MUNIN_PLUGINS="
nginx
"
# Exit if any commands fail
set -o errexit
# Configuring image specific packages
echo "* Configuring image specific packages."
git clone --depth=50 --branch=master https://tt-rss.org/git/tt-rss.git /opt/tt-rss/www
git clone https://github.com/m42e/ttrss_plugin-feediron.git /opt/tt-rss/feediron
git clone https://github.com/levito/tt-rss-feedly-theme.git /opt/tt-rss/feedly_theme
ln -s /opt/tt-rss/feediron /opt/tt-rss/www/plugins/feediron
ln -s /opt/tt-rss/feedly_theme/feedly /opt/tt-rss/www/themes
ln -s /opt/tt-rss/feedly_theme/feedly.css /opt/tt-rss/www/themes
chown -R www:www /opt/tt-rss/www/cache
chown -R www:www /opt/tt-rss/www/feed-icons
chown -R www:www /opt/tt-rss/www/lock
echo "* Activate munin plugins"
/opt/core/bin/munin-node-plugins ${MUNIN_PLUGINS}
echo "* Cleanup home/admin because of delegate dataset usage"
rm -rf /home/admin/.[^.]*
# Clean up
echo "* Cleaning up."
rm -rf /root/*
# Prepare image for provisioning
sm-prepare-image -y