1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00

path fixe

This commit is contained in:
titoko titoko 2013-11-24 18:30:44 +01:00
parent 30e43221a7
commit cd582b1a11

View file

@ -24,15 +24,15 @@ sudo yunohost app setting ttrss mysqlpwd -v $db_pwd
# Copy files to the right place # Copy files to the right place
final_path=/var/www/ttrss final_path=/var/www/ttrss
sudo mkdir -p $final_path sudo mkdir -p $final_path
sudo cp -a ../sources/* $final_path sudo cp -a ../source/* $final_path
sudo cp ../conf/config.php $final_path/ sudo cp ../conf/config.php $final_path/
# Change variables in ttrss configuration # Change variables in ttrss configuration
sudo sed -i "s/yunouser/$db_user/g" $final_path/config.php sudo sed -i "s/yunouser/$db_user/g" $final_path/config.php
sudo sed -i "s/yunopass/$db_pwf/g" $final_path/config.php sudo sed -i "s/yunopass/$db_pwd/g" $final_path/config.php
sudo sed -i "s/yunobase/$db_user/g" $final_path/config.php sudo sed -i "s/yunobase/$db_user/g" $final_path/config.php
sudo sed -i "s,yunopath,https://$domain$path,g" $final_path/config.php sudo sed -i "s,yunopath,https://$domain$path,g" $final_path/config.php
sudo echo "*/30 * * * * www-data cd $final_path && /usr/bin/php $final_path/update.php -feeds >/dev/null 2>&1" > /etc/cron.d/ttrss echo "*/30 * * * * www-data cd $final_path && /usr/bin/php $final_path/update.php -feeds >/dev/null 2>&1" > /etc/cron.d/ttrss
# Set permissions to ttrss directory # Set permissions to ttrss directory