mirror of
https://github.com/YunoHost-Apps/yacy_ynh.git
synced 2024-09-03 18:05:59 +02:00
enh
This commit is contained in:
parent
e9ab9788d8
commit
32b4bc02a8
1 changed files with 4 additions and 6 deletions
|
@ -25,18 +25,16 @@ gpg -a --export 1F968B3903D886E7 | sudo apt-key add -
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install yacy -y -qq
|
sudo apt-get install yacy -y -qq
|
||||||
|
|
||||||
# Port forwarding
|
|
||||||
echo 'iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8090' > /etc/rc.local
|
|
||||||
|
|
||||||
# Modify Nginx and YaCy configuration file, then copy them to the right place
|
# Modify Nginx and YaCy configuration file, then copy them to the right place
|
||||||
#sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||||
#sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/yacy.conf
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/yacy.conf
|
||||||
|
|
||||||
# Add YaCy service to the YunoHost monitoring
|
# Add YaCy service to the YunoHost monitoring
|
||||||
sudo yunohost service add yacy --log /var/log/yacy/yacy00.log
|
sudo yunohost service add yacy --log /var/log/yacy/yacy00.log
|
||||||
|
|
||||||
#Relancer le service YaCy avec la nouvelle configuration
|
#Relancer le service YaCy avec la nouvelle configuration
|
||||||
sudo yunohost service yacy restart
|
sudo yunohost service yacy stop
|
||||||
|
sudo yunohost service yacy start
|
||||||
|
|
||||||
# Reload Nginx and regenerate SSOwat conf
|
# Reload Nginx and regenerate SSOwat conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
Loading…
Add table
Reference in a new issue