mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-12-11 23:00:47 -08:00
17 lines
304 B
Bash
Executable File
17 lines
304 B
Bash
Executable File
#!/bin/bash
|
|
# Adding php wrapper
|
|
user="$1"
|
|
domain="$2"
|
|
ip="$3"
|
|
home_dir="$4"
|
|
docroot="$5"
|
|
|
|
wrapper_script='#!/usr/bin/php-cgi -cphp5-cgi.ini'
|
|
wrapper_file="$home_dir/$user/web/$domain/cgi-bin/php"
|
|
|
|
echo "$wrapper_script" > $wrapper_file
|
|
chown $user:$user $wrapper_file
|
|
chmod -f 751 $wrapper_file
|
|
|
|
exit 0
|