Bob Mottram hace 8 años
padre
commit
031a0581ec
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2
    2
      src/freedombone-utils-gnusocialtools
  2. 1
    1
      src/freedombone-utils-nodejs

+ 2
- 2
src/freedombone-utils-gnusocialtools Ver fichero

187
     fi
187
     fi
188
 
188
 
189
     mv ~/build/pleroma/dist/index.html ~/build/pleroma/dist/pleroma.html
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
     pleroma_set_background_image_from_url "$pleroma_domain" "$background_url" "$title"
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
     sed -i 's|index index.php;|index pleroma.html;|g' $nginx_site
195
     sed -i 's|index index.php;|index pleroma.html;|g' $nginx_site
196
 }
196
 }
197
 
197
 

+ 1
- 1
src/freedombone-utils-nodejs Ver fichero

153
 cp /usr/bin/nodejs /usr/bin/node
153
 cp /usr/bin/nodejs /usr/bin/node
154
 /usr/bin/curl -0 -L https://npmjs.org/install.sh | sh
154
 /usr/bin/curl -0 -L https://npmjs.org/install.sh | sh
155
 npm install -g n@${NODEJS_N_VERSION} --save
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
     exit 1
157
     exit 1
158
 fi
158
 fi
159
 cp /usr/local/bin/n /usr/bin/n
159
 cp /usr/local/bin/n /usr/bin/n