-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_install.sh
executable file
·75 lines (56 loc) · 1.47 KB
/
_install.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#! /bin/sh
#colors
NORMAL=`echo "\033[m"`
MENU=`echo "\033[36m"` #Blue
NUMBER=`echo "\033[33m"` #yellow
FGRED=`echo "\033[41m"`
RED_TEXT=`echo "\033[31m"`
ENTER_LINE=`echo "\033[33m"`
echo "${ENTER_LINE} _ _ _ _ _ _ "
echo '| |_(_) |_| |___ __| | |__ '
echo '| _| | _| / -_)_/ _` | / / '
echo " \__|_|\__|_\___(_)__,_|_\_\ "
echo ''
echo "Terminal Tools Installer"
echo ''
echo "${MENU}***********************************************${NORMAL}"
#cd ../..;
echo "Welcome to the Terminal Tools Installer";
echo "";
echo "Now creating your config file.";
echo "";
echo "Please enter the project name:"
read PROJECTNAME
#creation of config, based on input
echo "Projectname: \"$PROJECTNAME\"
Environments:
Live:
#required
Host: \"\"
Sshuser: \"\"
Repodir: \"\"
#additional settings
Domain: \"\"
Sshport: \"\"
Composerpath: \"\"
PhpPath: \"\"
Test:
#here goes data for a test server
Dev:
#here goes data for dev server - you can add as many servers as you want
Menu:
Heading1:
Title: Live Site
Item1:
Title: SSH Live Site
Command: \"ttools/core/local/ssh.sh Live\"
" > ttools/config.yml;
echo "#!/bin/sh
./ttools/core/lib/ttools.sh \"\$@\"" > tt;
chmod u+x tt;
echo "";
echo "Installation is done. You can now run Terminal Tools by running \"./tt\"";
echo "Remember to commit the changes to your repository."
echo ""
echo "${MENU}***********************************************${NORMAL}"
echo ""