setup environment/directories for app data

Bug #1401016 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
High
Michael Vogt

Bug Description

The actual pathes that are going to be used is right now under discussion.

We need to create the path in /var/lib/apps/$pkg/$version and provide the environment SNAPP_APP_DATA_PATH in systemd units and do the same for the user directories.

Michael Vogt (mvo)
description: updated
Revision history for this message
Alexander Sack (asac) wrote :

guess bug 1400368 might be part of this general issue.

Changed in snappy-ubuntu:
assignee: nobody → Michael Vogt (mvo)
importance: Undecided → High
status: New → Confirmed
tags: added: snappy-xp-deve
tags: added: snappy-xp-devel
removed: snappy-xp-deve
Martin Pitt (pitti)
information type: Embargoed → Public
Revision history for this message
Martin Pitt (pitti) wrote :

Repeating the important bits from bug 1400368 here:

SNAPP_APP_DATA_PATH=/var/lib//apps/ros-tutorial/0.2
SNAPP_APP_USER_DATA_PATH=/home/ubuntu//apps/ros-tutorial/0.2

$SNAPP_APP_DATA_PATH sounds fine, but is root:root, so cannot be written to by the app. $SNAPP_APP_USER_DATA_PATH sounds like the intended place, but the directory doesn't exist (which the description already mentions), but more importantly: it is version specific, so every upgrade of an app would suddenly lose all of its config/data. So this isn't currently appropriate at all.

Revision history for this message
Michael Vogt (mvo) wrote :

The data dirs are created and the data is copied on upgrade with current snappy.

Changed in snappy-ubuntu:
status: Confirmed → Fix Released
Michael Terry (mterry)
affects: snappy-ubuntu → snappy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.