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