mirror of
https://github.com/YunoHost-Apps/yacy_ynh.git
synced 2024-09-03 18:05:59 +02:00
hé
This commit is contained in:
parent
d5f29bfa84
commit
a68c7e6e69
1 changed files with 0 additions and 13 deletions
|
@ -15,23 +15,10 @@ db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]'
|
|||
# Use 'yacy' as database name and user
|
||||
db_user=yacy
|
||||
|
||||
# Initialize database and store mysql password for upgrade
|
||||
sudo yunohost app initdb $db_user -p $db_pwd -s $(readlink -e ../sources/SQL/mysql.initial.sql)
|
||||
sudo yunohost app setting yacy mysqlpwd -v $db_pwd
|
||||
|
||||
# Copy files to the right place
|
||||
final_path=/var/www/yacy
|
||||
sudo mkdir -p $final_path
|
||||
sudo cp -a ../sources/* $final_path
|
||||
sudo cp ../conf/main.inc.php $final_path/config/
|
||||
sudo cp ../conf/db.inc.php $final_path/config/
|
||||
sudo mv $final_path/plugins/managesieve/config.inc.php.dist $final_path/plugins/managesieve/config.inc.php
|
||||
|
||||
# Change variables in Roundcube configuration
|
||||
sudo sed -i "s/rcmail-ynhDESkeyTOchange/$deskey/g" $final_path/config/main.inc.php
|
||||
sudo sed -i "s/yunouser/$db_user/g" $final_path/config/db.inc.php
|
||||
sudo sed -i "s/yunopass/$db_pwd/g" $final_path/config/db.inc.php
|
||||
sudo sed -i "s/yunobase/$db_user/g" $final_path/config/db.inc.php
|
||||
|
||||
# Set permissions to yacy directory
|
||||
sudo chown -R www-data: $final_path
|
||||
|
|
Loading…
Add table
Reference in a new issue