mirror of
https://github.com/YunoHost-Apps/yourls_ynh.git
synced 2024-09-03 20:35:59 +02:00
add index.php to root
This commit is contained in:
parent
1e85c8609e
commit
e590ba5d25
2 changed files with 13 additions and 0 deletions
10
conf/index.php
Normal file
10
conf/index.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/admin">Admin page</a>
|
||||
</body>
|
||||
</html>
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue