mirror of
https://github.com/YunoHost-Apps/ampache_ynh.git
synced 2024-09-03 18:15:55 +02:00
Update install
This commit is contained in:
parent
adf354983c
commit
715f015d44
1 changed files with 4 additions and 2 deletions
|
@ -35,12 +35,13 @@ final_path=/var/www/ampache
|
||||||
sudo mkdir -p $final_path/log
|
sudo mkdir -p $final_path/log
|
||||||
sudo cp -a ../sources/* $final_path
|
sudo cp -a ../sources/* $final_path
|
||||||
sudo cp ../conf/ampache.cfg.php $final_path/config/ampache.cfg.php
|
sudo cp ../conf/ampache.cfg.php $final_path/config/ampache.cfg.php
|
||||||
|
sudo cp ../conf/admin.sql /tmp/
|
||||||
|
|
||||||
# Change variables in Ampache configuration
|
# Change variables in Ampache configuration
|
||||||
sudo sed -i "s/yunouser/$db_user/g" $final_path/config/ampache.cfg.php
|
sudo sed -i "s/yunouser/$db_user/g" $final_path/config/ampache.cfg.php
|
||||||
sudo sed -i "s/yunopass/$db_pwd/g" $final_path/config/ampache.cfg.php
|
sudo sed -i "s/yunopass/$db_pwd/g" $final_path/config/ampache.cfg.php
|
||||||
sudo sed -i "s/yunobase/$db_user/g" $final_path/config/ampache.cfg.php
|
sudo sed -i "s/yunobase/$db_user/g" $final_path/config/ampache.cfg.php
|
||||||
sudo sed -i "s/yunoadmin/$admin_ampache/g" ../conf/admin.sql
|
sudo sed -i "s/yunoadmin/$admin_ampache/g" /tmp/admin.sql
|
||||||
sed -i "s@PATHTOCHANGE@$path@g" $final_path/config/ampache.cfg.php
|
sed -i "s@PATHTOCHANGE@$path@g" $final_path/config/ampache.cfg.php
|
||||||
sed -i "s@DOMAINTOCHANGE@$domain@g" $final_path/config/ampache.cfg.php
|
sed -i "s@DOMAINTOCHANGE@$domain@g" $final_path/config/ampache.cfg.php
|
||||||
|
|
||||||
|
@ -67,4 +68,5 @@ sudo yunohost app setting ampache skipped_uris -d
|
||||||
sudo yunohost app setting ampache skipped_uris -v "/rest"
|
sudo yunohost app setting ampache skipped_uris -v "/rest"
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
sudo sed -i '/yunoampache/d' /etc/hosts
|
sudo sed -i '/yunoampache/d' /etc/hosts
|
||||||
mysql -u $db_user -p$db_pwd $db_user < ../conf/admin.sql
|
mysql -u $db_user -p$db_pwd $db_user < /tmp/admin.sql
|
||||||
|
sudo rm /tmp/admin.sql
|
||||||
|
|
Loading…
Add table
Reference in a new issue