forked from douban/code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchlinux.sh
More file actions
25 lines (18 loc) · 647 Bytes
/
archlinux.sh
File metadata and controls
25 lines (18 loc) · 647 Bytes
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
#!/usr/bin/env bash
#Get generic function
. common.sh
echo "Install needed package.This may take some time..."
sudo pacman -S git gcc make python2-pip python2-virtualenv memcached git --noconfirm -q
echo "Install mysql..."
sudo pacman -S mysql --noconfirm -q
sudo systemctl start mysqld
echo "Setup memcached port to 11311..."
sudo sed -i "s/memcached -l/memcached -p 11311 -l/" /usr/lib/systemd/system/memcached.service
sudo systemctl start memcached
# Use virtualenv2
sudo mv /usr/bin/virtualenv /usr/bin/virtualenv.bak
sudo ln -s /usr/bin/virtualenv2 /usr/bin/virtualenv
echo "Install code..."
install_code
echo "Start app..."
start_app