Bob Mottram пре 8 година
родитељ
комит
031a0581ec
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2
    2
      src/freedombone-utils-gnusocialtools
  2. 1
    1
      src/freedombone-utils-nodejs

+ 2
- 2
src/freedombone-utils-gnusocialtools Прегледај датотеку

@@ -187,11 +187,11 @@ function install_pleroma {
187 187
     fi
188 188
 
189 189
     mv ~/build/pleroma/dist/index.html ~/build/pleroma/dist/pleroma.html
190
-    cp -r ~/build/pleroma/dist/* /var/www/$pleroma_domain/htdocs/
190
+    cp -r ~/build/pleroma/dist/* /var/www/${pleroma_domain}/htdocs/
191 191
 
192 192
     pleroma_set_background_image_from_url "$pleroma_domain" "$background_url" "$title"
193 193
 
194
-    nginx_site=/etc/nginx/sites-available/$pleroma_domain
194
+    nginx_site=/etc/nginx/sites-available/${pleroma_domain}
195 195
     sed -i 's|index index.php;|index pleroma.html;|g' $nginx_site
196 196
 }
197 197
 

+ 1
- 1
src/freedombone-utils-nodejs Прегледај датотеку

@@ -153,7 +153,7 @@ cp /usr/bin/nodejs /usr/local/bin/node
153 153
 cp /usr/bin/nodejs /usr/bin/node
154 154
 /usr/bin/curl -0 -L https://npmjs.org/install.sh | sh
155 155
 npm install -g n@${NODEJS_N_VERSION} --save
156
-if [ -f /usr/local/bin/n ]; then
156
+if [ ! -f /usr/local/bin/n ]; then
157 157
     exit 1
158 158
 fi
159 159
 cp /usr/local/bin/n /usr/bin/n