slitaz-forge rev 670
Add up-pizza to pangolin server admin tool
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 16 18:38:54 2017 +0100 (2017-03-16) |
parents | 3dd8a58a91ba |
children | 0e35b23a3069 |
files | pangolin/pangolin slitaz.me/index.html |
line diff
1.1 --- a/pangolin/pangolin Wed Mar 01 11:09:44 2017 +0100 1.2 +++ b/pangolin/pangolin Thu Mar 16 18:38:54 2017 +0100 1.3 @@ -22,9 +22,10 @@ 1.4 up-forum Update forum.slitaz.org theme 1.5 up-doc Update doc.slitaz.org theme and configs 1.6 up-hg Update Hg web interface hg.slitaz.org 1.7 - adduser Add a user to Hg. 1.8 - stats Display some server stats. 1.9 - backup Backup MySQL DB and files. 1.10 + up-pizza Update Pizza web interface pizza.slitaz.me 1.11 + up-pangolin Update pangolin.slitaz.org virtual host 1.12 + adduser Add a new user to Hg 1.13 + stats Display some server stats 1.14 1.15 EOT 1.16 } 1.17 @@ -48,12 +49,14 @@ 1.18 # 1.19 1.20 case "$1" in 1.21 + 1.22 up-www) 1.23 # Update website from repo. 1.24 newline 1.25 boldify "Updating: www.slitaz.org..." 1.26 cd ${WEBSITE} && hg pull -u 1.27 newline ;; 1.28 + 1.29 up-forum) 1.30 # Update forum.slitaz.org theme 1.31 newline 1.32 @@ -61,6 +64,7 @@ 1.33 cd ${REPOS}/slitaz-forge && hg up 1.34 cp -a forum/my-templates ${WWW}/forum.slitaz.org/public_html 1.35 newline ;; 1.36 + 1.37 up-doc) 1.38 # Update doc.slitaz.org theme 1.39 newline 1.40 @@ -70,25 +74,48 @@ 1.41 chown www.www ${WWW}/doc.slitaz.org/public_html/conf 1.42 chown www.www ${WWW}/doc.slitaz.org/public_html/conf/local.php 1.43 newline ;; 1.44 + 1.45 up-hg) 1.46 - # Update hg.slitaz.org template. 1.47 + # Update hg.slitaz.org template 1.48 newline 1.49 boldify "Updating Mercurial template..." 1.50 cd $REPOS/slitaz-dev-tools && hg update 1.51 cp -a slitaz-mercurial-style/* $PYTHON_LIB/site-packages/mercurial 1.52 chown -R root.root $PYTHON_LIB/site-packages/mercurial/templates 1.53 newline ;; 1.54 + 1.55 + up-pizza) 1.56 + # Update pizza.slitaz.me 1.57 + newline 1.58 + boldify "Updating Pizza builder..." 1.59 + cd $REPOS/slitaz-pizza && hg update 1.60 + cp /etc/slitaz/pizza.conf /etc/slitaz/pizza.conf.bak 1.61 + make install; cd .. 1.62 + cp -f /etc/slitaz/pizza.conf.bak /etc/slitaz/pizza.conf 1.63 + pizza up-files 1.64 + newline ;; 1.65 + 1.66 + up-play) 1.67 + # Update play.slitaz.me 1.68 + newline 1.69 + boldify "Updating play.slitaz.org..." 1.70 + cd $REPOS/slitaz-dev-tools && hg update 1.71 + cp -rf play/web/* ${www}/play.slitaz.org/publc_html 1.72 + newline ;; 1.73 + 1.74 up-pangolin) 1.75 # Update pangolin.slitaz.org 1.76 newline 1.77 boldify "Updating: pangolin.slitaz.org..." 1.78 cd ${REPOS}/slitaz-forge && hg up 1.79 - cp -a pangolin/web/* $WWW/pangolin.slitaz.org/public_html 1.80 + cp -a pangolin/web/* ${www}/pangolin.slitaz.org/public_html 1.81 newline ;; 1.82 + 1.83 adduser) 1.84 [ ! "$2" ] && echo "Missing user name arg" && exit 0 1.85 [ ! "$3" ] && echo "Missing password arg" && exit 0 1.86 htpasswd -b ${HGUSERS} $2 $3 ;; 1.87 + 1.88 stats) 1.89 # Echo some stats. 1.90 newline 1.91 @@ -102,8 +129,6 @@ 1.92 separator 1.93 who 1.94 newline ;; 1.95 - backup) 1.96 - echo "TODO: backup MySQL, SCN files, etc" ;; 1.97 *) 1.98 usage ;; 1.99 esac
2.1 --- a/slitaz.me/index.html Wed Mar 01 11:09:44 2017 +0100 2.2 +++ b/slitaz.me/index.html Thu Mar 16 18:38:54 2017 +0100 2.3 @@ -14,6 +14,7 @@ 2.4 <div id="network"> 2.5 <a href="http://www.slitaz.org">SliTaz.Org</a> 2.6 <a href="http://pizza.slitaz.me">Pizza</a> 2.7 + <a href="http://play.slitaz.me">Play</a> 2.8 </div> 2.9 <h1><a href="http://slitaz.me">SliTaz.me</a></h1> 2.10 </div> 2.11 @@ -30,7 +31,7 @@ 2.12 </div> 2.13 2.14 <div id="footer"> 2.15 -© 2014 <a href="http://www.slitaz.org">SliTaz GNU/Linux</a> 2.16 +© 2017 <a href="http://www.slitaz.org">SliTaz GNU/Linux</a> 2.17 </div> 2.18 2.19 </body>