Skip to content

Commit

Permalink
Merge pull request #6269 from habitat-sh/cm/remove-old-content
Browse files Browse the repository at this point in the history
Remove old templated content when adding a service
  • Loading branch information
christophermaier authored Mar 12, 2019
2 parents cd011db + dbf5952 commit bad5824
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/sup/src/manager/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ impl Service {
/// Create the service path for this package.
pub fn create_svc_path(&self) -> Result<()> {
debug!("{}, Creating svc paths", self.service_group);
SvcDir::new(&self.pkg.name, &self.pkg.svc_user, &self.pkg.svc_group).create()?;
let svc_dir = SvcDir::new(&self.pkg.name, &self.pkg.svc_user, &self.pkg.svc_group);
svc_dir.create()?;
svc_dir.purge_templated_content()?;
Ok(())
}

Expand Down

0 comments on commit bad5824

Please sign in to comment.