Commit 2c4b15cd authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Łukasz Nowak

repo: Allow to configure software releases

The install.sh script has to remove all software releases except the provided
ones, and they are different in various scenarios.
parent a52befcd
PLAYBOOK=erp5-standalone.yml
\ No newline at end of file
PLAYBOOK=erp5-standalone.yml
ERP5_SR_URL="https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56.1/software/erp5/software.cfg"
FRONTEND_SR_URL="https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56.1/software/apache-frontend/software.cfg"
\ No newline at end of file
......@@ -80,7 +80,7 @@ slapos node format --now --alter_user=True >> $LOG_FILE 2>&1
# and they request the old software releases
rm -f /etc/cron.d/ansible*request* >> $LOG_FILE 2>&1
# remove any other software from the proxy
/opt/slapos/parts/sqlite3/bin/sqlite3 /opt/slapos/slapproxy.db 'delete from software11 where url not in ("https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56.1/software/apache-frontend/software.cfg","https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56.1/software/erp5/software.cfg");' >> $LOG_FILE 2>&1
/opt/slapos/parts/sqlite3/bin/sqlite3 /opt/slapos/slapproxy.db 'delete from software11 where url not in ("$FRONTEND_SR_URL","$ERP5_SR_URL");' >> $LOG_FILE 2>&1
  • Isn't it executing delete from software11 where url not in ("$FRONTEND_SR_URL","$ERP5_SR_URL"); ? without substituting variables ?

Please register or sign in to reply
echo "done."
echo -n "Installing ERP5 software..."
yum install -y erp5*rpm >> $LOG_FILE 2>&1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment