Kaynağa Gözat

possible checkstyle fixes

sparklyballs 9 yıl önce
ebeveyn
işleme
73809ca4c9
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 5 2
      init/60_update_get_the_site.sh

+ 5 - 2
init/60_update_get_the_site.sh

@@ -1,10 +1,13 @@
 #!/bin/bash
 
+THUMBS="/Thumbs"
+PICTURES="/Pictures"
+
 if [ ! -f "/config/www/PhotoShow/config.php" ]; then
 echo "fetching photoshow files from github"
 git clone https://github.com/thibaud-rohmer/PhotoShow.git /config/www/PhotoShow
-sed -i -e 's/$config->photos_dir.\+/$config->photos_dir = "\/Pictures";/' /config/www/PhotoShow/config.php
-sed -i -e 's/$config->ps_generated.\+/$config->ps_generated = "\/Thumbs";/' /config/www/PhotoShow/config.php
+sed -i -e "s#$config->photos_dir.\+#$config->photos_dir = \"${PICTURES}\";#" /config/www/PhotoShow/config.php
+sed -i -e "s#$config->ps_generated.\+#$config->ps_generated = \"${THUMBS}\";#" /config/www/PhotoShow/config.php
 else
 echo "checking for updates"
 cd /config/www/PhotoShow