This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Detect paths | |
MYSQL=$(which mysql) | |
AWK=$(which awk) | |
GREP=$(which grep) | |
if [ $# -ne 3 ] | |
then | |
echo "Usage: $0 {MySQL-User-Name} {MySQL-User-Password} {MySQL-Database-Name}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# configuration conversion | |
# 1.comment 2. example 3.grouping | |
[uwsgi] | |
# virtualenv dir path. | |
# EG:'/var/www/xcloud_site/xcloud_env' | |
home = ### | |
# django project path. | |
# EG:'/var/www/xcloud_site/repo' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
set -e | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
DESC="uwsgi daemon" | |
UWSGI_DAEMON=/var/www/xcloud_site/xcloud_env/bin/uwsgi | |
UWSGI_CONF=/etc/uwsgi/uwsgi.ini | |
UWSGI_PID=/var/run/uwsgi-emperor.pid |
NewerOlder