1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00

fix bug domain to config file

This commit is contained in:
Thomas LEBEAU 2014-06-13 11:34:41 +02:00
parent 75c91cb153
commit 52951eee4a
2 changed files with 3 additions and 1 deletions

View file

@ -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 );

View file

@ -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