Skip to content

Commit 2d09a47

Browse files
committed
filemanager installer: fix permission
1 parent dde0dc6 commit 2d09a47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install/deb/filemanager/install-fm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if [ ! -f "$COMPOSER_BIN" ]; then
2525

2626
COMPOSER_SETUP_FILE=$(mktemp)
2727
check_result $? "Create temp file"
28+
chown $user: "$COMPOSER_SETUP_FILE"
2829

2930
signature="$(curl https://composer.github.io/installer.sig)"
3031
check_result $? "Download signature"
@@ -35,7 +36,7 @@ if [ ! -f "$COMPOSER_BIN" ]; then
3536
[[ "$signature" = $(sha384sum $COMPOSER_SETUP_FILE | cut -f 1 -d " ") ]] || check_result $E_INVALID "Composer signature does not match"
3637

3738
COMPOSER_HOME="$HOMEDIR/$user/.config/composer" user_exec /usr/bin/php "$COMPOSER_SETUP_FILE" --install-dir="$COMPOSER_DIR" --filename=composer
38-
check_result $? "Composer instal failed"
39+
check_result $? "Composer install failed"
3940

4041
[ -f "$COMPOSER_SETUP_FILE" ] && rm -f "$COMPOSER_SETUP_FILE"
4142
fi

0 commit comments

Comments
 (0)