swiftly icon indicating copy to clipboard operation
swiftly copied to clipboard

Update PROFILE_FILE for system when running as root

Open freef4ll opened this issue 2 years ago • 2 comments

Running a global system install like:

sudo SWIFTLY_HOME_DIR=/usr/local/share SWIFTLY_BIN_DIR=/usr/local/bin ./swiftly-install.sh  --disable-confirmation

Will result the profile being added for the root user, but can include this globally for all users by creating a file in /etc/profile.d

freef4ll avatar Sep 25 '23 10:09 freef4ll

The root user may still want to install packages just for themselves, so I don't know if we want to gate this behavior on that. However, I think it does make sense to have a configuration option to allow for system-wide installs. Does that sound good to you?

patrickfreed avatar Oct 11 '23 04:10 patrickfreed

Yep, configuration option is good!

freef4ll avatar Oct 11 '23 07:10 freef4ll