forked from thenets/easyckan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy_ckan.sh
executable file
·57 lines (43 loc) · 2.08 KB
/
easy_ckan.sh
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
clear
echo "# ======================================================== #"
echo "# == Welcome to Easy CKAN installation == #"
echo "# ======================================================== #"
echo "| If you have any question or need support, just open an |"
echo "| issue on: https://github.com/thenets/Easy-CKAN |"
echo "# ======================================================== #"
echo ""
# Fix bash permissions
chmod +x ./*/*.sh
# Install command line tools
# ==============================================
echo "# ======================================================== #"
echo "# == Installing Easy CKAN command line tools == #"
echo "# ======================================================== #"
su -c "sleep 1"
mkdir -p /etc/easyckan/
# Copying folders
cp -R ./bin/ /etc/easyckan/bin/
cp -R ./conf/ /etc/easyckan/conf/
cp -R ./helpers/ /etc/easyckan/helpers/
cp -R ./installers/ /etc/easyckan/installers/
# Set permissions
chmod +x /etc/easyckan/bin/easyckan
# Add easyckan to path
ln -s /etc/easyckan/bin/easyckan /usr/bin/easyckan
echo "... done!"
# Finish
# ==============================================
echo ""
echo "# ======================================================== #"
echo "# == Easy CKAN == #"
echo "# ======================================================== #"
echo "| If you have any question or need support, just open an |"
echo "| issue on: https://github.com/thenets/Easy-CKAN |"
echo "| |"
echo "| Run the following command to learn how to use: |"
echo "| # sudo easyckan help |"
echo "| |"
echo "| |"
echo "| Luiz Felipe F M Costa |"
echo "| TheNets.org |"
echo "# ======================================================== #"