Skip to content

Commit

Permalink
rollback license relocation (#219)
Browse files Browse the repository at this point in the history
Having a license file in the repository's root directory is industry
standard.
Rolling back part of the changes of PR #210
  • Loading branch information
delgod authored Jun 1, 2023
1 parent 057b0b6 commit 519bb32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions lib/charms/mongodb/v0/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def build_unit_status(mongodb_config: MongoDBConfiguration, unit_ip: str) -> Sta

def copy_licenses_to_unit():
"""Copies licenses packaged in the snap to the charm's licenses directory."""
subprocess.check_output("cp LICENSE src/licenses/LICENSE-charm", shell=True)
subprocess.check_output(
"cp -r /snap/charmed-mongodb/current/licenses/* src/licenses", shell=True
)

0 comments on commit 519bb32

Please sign in to comment.