-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup-remote.sh
executable file
·66 lines (52 loc) · 1.03 KB
/
setup-remote.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
#!/bin/bash
echo "Going up one directory"
cd ..
echo "Making sure Gitify-Folders and Configuration exist"
if [ -d "_backup" ]
then
echo "_backup exists"
else
echo "_backup directory is missing"
exit 1
fi
if [ -d "_data" ]
then
echo "_data exists"
else
echo "_data directory is missing"
exit 1
fi
if [ -d "_keys" ]
then
echo "_keys exists"
else
echo "_keys directory is missing"
exit 1
fi
if [ -d "www" ]
then
echo "www exists"
else
echo "www directory is missing"
exit 1
fi
if [ -e "www/.gitify" ]
then
echo "www/.gitify exists"
else
echo ".gitify file is missing"
exit 1
fi
echo "Changing into ./www and beginning MODX Installation (core/packages):"
cd www
sleep 2
Gitify modx:install && Gitify package:install --all
echo "Delete default ht.access from MODX directory"
rm ht.access
echo "Secure MODX core directory"
mv ./core/ht.access ./core/.htaccess
echo "MODX and its packages are installed."
echo "Now building the site content:"
sleep 2
Gitify build --force --no-backup
exit