From 52951eee4aeea36af927088072d6af114996ec72 Mon Sep 17 00:00:00 2001 From: Thomas LEBEAU Date: Fri, 13 Jun 2014 11:34:41 +0200 Subject: [PATCH] fix bug domain to config file --- conf/config.php | 2 +- scripts/install | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/config.php b/conf/config.php index 19a4362..66315d6 100644 --- a/conf/config.php +++ b/conf/config.php @@ -29,7 +29,7 @@ define( 'YOURLS_DB_PREFIX', 'yourls_' ); /** YOURLS installation URL -- all lowercase and with no trailing slash. ** If you define it to "http://site.com", don't use "http://www.site.com" in your browser (and vice-versa) */ -define( 'YOURLS_SITE', 'domain' ); +define( 'YOURLS_SITE', 'yudomain' ); /** Timezone GMT offset */ define( 'YOURLS_HOURS_OFFSET', 0 ); diff --git a/scripts/install b/scripts/install index 5c4f414..e080395 100644 --- a/scripts/install +++ b/scripts/install @@ -40,9 +40,11 @@ sudo cp ../conf/config.php $final_path/user/config.php sudo sed -i "s/yunouser/$db_user/g" $final_path/user/config.php sudo sed -i "s/yunopass/$db_pwd/g" $final_path/user/config.php sudo sed -i "s/yunobase/$db_user/g" $final_path/user/config.php +sudo sed -i "s/yunodomain/$domain/g" $final_path/user/config.php sudo sed -i "s/yourlsuser/$admin_user/g" $final_path/user/config.php sudo sed -i "s/yourlspass/$upload_password/g" $final_path/user/config.php + # Set permissions sudo chown -R www-data: $final_path