Skip to content

Commit

Permalink
Fix ini file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 28, 2018
1 parent cdda581 commit 6dab714
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .docker/qgis_resources/test_runner/qgis_setup.sh
Expand Up @@ -8,7 +8,7 @@
# - create the folders
# - install startup.py monkey patches
# - disable tips
# - enable the plugin
# - enable the plugin (optionally)

PLUGIN_NAME=$1
CONF_MASTER_FOLDER="/root/.local/share/QGIS/QGIS3/profiles/default/QGIS/"
Expand Down Expand Up @@ -42,20 +42,17 @@ if [ -n "$PLUGIN_NAME" ]; then
# Enable plugin
printf '[PythonPlugins]\n' >> $CONF_MASTER_FILE
printf "%s=true\n\n" "$PLUGIN_NAME" >> $CONF_MASTER_FILE
# Install the plugin
if [ ! -d "${PLUGIN_MASTER_FOLDER}/${PLUGIN_NAME}" ]; then
ln -s "/tests_directory/${PLUGIN_NAME}" "${PLUGIN_MASTER_FOLDER}"
echo "Plugin master folder linked in ${PLUGIN_MASTER_FOLDER}/${PLUGIN_NAME}"
fi
fi

# Disable firstRunVersionFlag for master
{
printf
"\n[migration]\n"
"fileVersion=2\n"
"firstRunVersionFlag=30500\n"
"settings=true\n\n"
} >> $CONF_MASTER_FILE


# Install the plugin
if [ ! -d "${PLUGIN_MASTER_FOLDER}/${PLUGIN_NAME}" ]; then
ln -s "/tests_directory/${PLUGIN_NAME}" "${PLUGIN_MASTER_FOLDER}"
echo "Plugin master folder linked in ${PLUGIN_MASTER_FOLDER}/${PLUGIN_NAME}"
fi
echo "
[migration]
fileVersion=2
firstRunVersionFlag=30500
settings=true
" >> $CONF_MASTER_FILE

0 comments on commit 6dab714

Please sign in to comment.