You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
641 B

​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. echo "\n\n\nAFTER!!\n\n\n";
  3. $CMD = `cp -f /srv/etc/ag_nginx/argus_nginx.service /etc/systemd/system/argus_nginx.service`;
  4. $CMD = `systemctl daemon-reload`;
  5. $CMD = `cp -f /srv/etc/nginx/default /etc/nginx/sites-available/default`;
  6. copy( '/srv/www/web/lib/controller/data/mysqlitedb.db', '/srv/www/distro/lib/data/mysqlitedb.db' );
  7. $CMD = `echo "127.0.0.1 localhost.localdomain localhost" > /etc/hosts`;
  8. $CMD = `echo "192.168.200.121 MERSYS" >> /etc/hosts`;
  9. $CMD = `systemctl start argus_nginx`;
  10. $CMD = `systemctl enable argus_nginx`;
  11. $CMD = `systemctl start nginx`;
  12. $CMD = `reboot`;
  13. ?>