From e590ba5d2593b65eebc01c8c486c81aa1f15c642 Mon Sep 17 00:00:00 2001 From: Thomas LEBEAU Date: Tue, 1 Jul 2014 07:21:26 +0200 Subject: [PATCH] add index.php to root --- conf/index.php | 10 ++++++++++ scripts/install | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 conf/index.php diff --git a/conf/index.php b/conf/index.php new file mode 100644 index 0000000..ee32376 --- /dev/null +++ b/conf/index.php @@ -0,0 +1,10 @@ + + + + + + + + Admin page + + \ No newline at end of file diff --git a/scripts/install b/scripts/install index dfdabbc..a866f5a 100644 --- a/scripts/install +++ b/scripts/install @@ -35,6 +35,8 @@ final_path=/var/www/yourls sudo mkdir -p $final_path sudo cp -a ../sources/* $final_path +sudo cp ../conf/index.php $final_path/ + # Change variable in yourls configuration sudo cp ../conf/config.php $final_path/user/config.php sudo sed -i "s/yunouser/$db_user/g" $final_path/user/config.php @@ -51,6 +53,7 @@ sudo chown -R www-data: $final_path # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf* +sed -i "s@DOMAINTOCHANGE@$domain@g" ../conf/nginx.conf* sed -i "s@ALIASTOCHANGE@$final_path@g" ../conf/nginx.conf* nginxconf=/etc/nginx/conf.d/$domain.d/yourls.conf sudo cp ../conf/nginx.conf $nginxconf