Skip to content

Commit

Permalink
Update install.am: enable RW permissions for all users (multi-account)
Browse files Browse the repository at this point in the history
Fix #466
  • Loading branch information
ivan-hc authored Apr 22, 2024
1 parent 7b6c727 commit c07b635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/install.am
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ while [ -n "$1" ]; do
$SUDOCOMMAND ./$arg

echo -ne " Configuring $(echo '"'$arg'"' | tr a-z A-Z)...\r" && echo -ne " \r" &&
$SUDOCOMMAND chown -R $currentuser $APPSPATH/$(cd $APPSPATH && ls -td * | head -1) 2> /dev/null
$SUDOCOMMAND chmod -R 0777 $APPSPATH/$(cd $APPSPATH && ls -td * | head -1) 2> /dev/null
if test -f $APPSPATH/$(cd $APPSPATH && ls -td * | head -1)/AM-updater; then
mkdir $APPSPATH/$(cd $APPSPATH && ls -td * | head -1)/.am-installer 2> /dev/null &&
wget -q $APPSDB/$arg -O $APPSPATH/$(cd $APPSPATH && ls -td * | head -1)/.am-installer/$arg
Expand Down Expand Up @@ -190,7 +190,7 @@ while [ -n "$1" ]; do
echo -e " 💀 ERROR DURING INSTALLATION, REMOVED $(echo '"'$arg'"' | tr a-z A-Z)!"
$AMCLIPATH -R $LATESTDIR 1> /dev/null
else
chown -R $currentuser $AMPATH/.cache/about 2> /dev/null
chmod -R 0777 $AMPATH/.cache/about 2> /dev/null
for metapackage in $(echo "$METAPACKAGES"); do
if grep -q "$metapackage" ./$arg 2> /dev/null; then
metascript=$(cd $APPSPATH && ls -td * | head -1)
Expand Down

0 comments on commit c07b635

Please sign in to comment.