-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcashpo_install.sh
32 lines (23 loc) · 1.02 KB
/
cashpo_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
#!/bin/bash
read -p "Now we will proceed make sure espoCRM becomes CashpoCRM by 510, do you want to contiue? [y/n]" -n 1 -r
echo # (optional) move to a new line
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
echo "currently you have installed a clean version of EspoCRM. You can run this installer again if you want to upgrade to CashpoCRM"
exit 1
fi
wget https://github.com/tijsziere/cashpo/archive/main.tar.gz
tar -xzf "main.tar.gz"
rm -R /var/www/espocrm/data/espocrm/custom/
cp -R cashpo-main/custom /var/www/espocrm/data/espocrm/
rm -R cashpo-main
rm install.sh
rm main.tar.gz
cd /var/www/espocrm/data/espocrm/
find . -type d -exec chmod 755 {} + && find . -type f -exec chmod 644 {} +;
find data custom client/custom -type d -exec chmod 775 {} + && find data custom client/custom -type f -exec chmod 664 {} +;
chmod 775 application/Espo/Modules client/modules;
chmod 754 bin/command;
chown -R www-data:www-data .;
bash /var/www/espocrm/command.sh rebuild
echo "510 CashpoCRM has been installed, you can use the credentials above to login"