Browse Source

update README

master
pvincent 3 years ago
parent
commit
2641e70eaf
  1. 14
      README.md

14
README.md

@ -68,14 +68,16 @@ EOF
ADMIN RESET PASSWORD ADMIN RESET PASSWORD
-------------------- --------------------
* # go to http://localhost for ERROR + table regeneration, then
go to http://localhost for ERROR + table regeneration, then
* cd /var/www/cagettepei * cd /var/www/cagettepei
* SECRET=$(grep key= config.xml | cut -d= -f2 | cut -d'"' -f2) * SECRET=$(grep key= config.xml | cut -d= -f2 | cut -d'"' -f2)
* echo "insert into User values (1,'fr',MD5('${SECRET}cagettepei'),1,'Administrateur','Cagette Péi', 'admin', null, null, null, null, null, null, null, null, null, now(), now(),6,null, null)" | mysql -h localhost -u cagettepei -pcagettepei cagettepei * echo "insert into User values (1,'fr',MD5('${SECRET}cagettepei'),1,'Administrateur','Cagette Péi', 'admin', null, null, null, null, null, null, null, null, null, now(), now(),6,null, null)" | mysql -h localhost -u cagettepei -pcagettepei cagettepei
* # connect with admin / cagettepei
then, connect with admin / cagettepei
### change admin password
* # change admin password
* echo "update User set pass=MD5('${SECRET}cagettepei') where id=1" | mysql -h localhost -u cagettepei -pcagettepei cagettepei * echo "update User set pass=MD5('${SECRET}cagettepei') where id=1" | mysql -h localhost -u cagettepei -pcagettepei cagettepei
@ -118,6 +120,7 @@ ExecStart=/var/www/cagettepei-batch minute
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
``` ```
* vim /etc/systemd/system/cagettepei-batch-day.service * vim /etc/systemd/system/cagettepei-batch-day.service
``` ```
[Unit] [Unit]
@ -131,6 +134,7 @@ ExecStart=/var/www/cagettepei-batch daily
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
``` ```
* vim /etc/systemd/system/cagettepei-batch-minute.timer * vim /etc/systemd/system/cagettepei-batch-minute.timer
``` ```
[Unit] [Unit]
@ -144,6 +148,7 @@ Unit=cagettepei-batch-minute.service
[Install] [Install]
WantedBy=timers.target WantedBy=timers.target
``` ```
* vim /etc/systemd/system/cagettepei-batch-day.timer * vim /etc/systemd/system/cagettepei-batch-day.timer
``` ```
[Unit] [Unit]
@ -165,6 +170,3 @@ WantedBy=timers.target
``` ```
* systemctl enable cagettepei-batch-minute.timer cagettepei-batch-day.timer * systemctl enable cagettepei-batch-minute.timer cagettepei-batch-day.timer
* systemctl start cagettepei-batch-minute.timer cagettepei-batch-day.timer * systemctl start cagettepei-batch-minute.timer cagettepei-batch-day.timer
Loading…
Cancel
Save