Skip to content
This repository was archived by the owner on May 19, 2024. It is now read-only.

Commit 2463d0e

Browse files
fezerngodoriflowth
authored andcommitted
[Added] Ispconfig installscript (#51)
* Add files via upload * Delete ispconfig.txt * ispconfig.sh * Update README.md
1 parent 79b9242 commit 2463d0e

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
sudo bash -c "apt-get update && apt-get install curl -y && curl -s https://raw.githubusercontent.com/riflowth/SkinSystem/master/installscripts/UbuntuInstall.sh | bash -s"
5151
```
5252

53+
:grey_exclamation: If you use **ispconfig**, you may run **this command**:
54+
55+
```bash
56+
sudo bash -c "apt-get update && apt-get install curl -y && curl -s https://raw.githubusercontent.com/riflowth/SkinSystem/master/installscripts/ispconfigInstall.sh | bash -s"
57+
```
58+
5359
#### **otherwise**, follow **these directions**:
5460

5561
1. Install MySQL

installscripts/ispconfig.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# "apt-get update && apt-get install curl -y && curl -s https://raw.githubusercontent.com/riflowth/SkinSystem/master/installscripts/ispconfigInstall.sh | bash -s"
2+
# This script for ispconfig installs apache, php, git, curl, overrides the default apache webpage, and creates mysql databases+user.
3+
echo "installing skinsystem (mysql, apache2, php, git)"
4+
apt-get update
5+
apt-get install mysql-server apache2 libapache2-mod-php php-curl php-mysql php-gd git -y
6+
cd /var/www
7+
git clone https://github.com/riflowth/SkinSystem
8+
cd SkinSytem
9+
git checkout ``git tag | sort -V | grep -v "\-rc" | tail -1``
10+
rm -rf .git
11+
rm -rf .gitignore
12+
rm -rf *.md
13+
cd ..
14+
read -p "Enter your domain name (must be created via ispconfig): " site
15+
USER=$(stat -c '%U' /var/www/$site/web)
16+
GROUP=$(stat -c '%G' /var/www/$site/web)
17+
mv $site/web $site/web.backup$(date -I)
18+
mv SkinSystem $site/web
19+
chmod 775 -R /var/www/$site/web && chown -R $USER:$GROUP /var/www/$site/web
20+
pw=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13 ; echo '')
21+
echo "Creating MySQL user skinsystem:$pw"
22+
echo "CREATE USER 'skinsystem'@'localhost' IDENTIFIED BY '$pw'; \
23+
CREATE DATABASE skinsrestorer; \
24+
GRANT ALL PRIVILEGES ON skinsrestorer . * TO 'skinsystem'@'localhost'; \
25+
CREATE DATABASE authme; \
26+
GRANT ALL PRIVILEGES ON authme . * TO 'skinsystem'@'localhost';" | mysql && echo "MySQL user skinsystem:$pw was created"
27+
echo "Have a nice day, remember to save your credentials!"
28+
read -n 1 -s -r -p "Press any key to continue"
29+
echo ""
30+
clear

0 commit comments

Comments
 (0)