Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
refs #67
Browse files Browse the repository at this point in the history
* chown / chgrp need integer
  • Loading branch information
Bastian Rang committed Oct 11, 2017
1 parent b61da5c commit 935bd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/File/FileWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public function put(string $path, string $content) {
* Set user/group corresponding to executing user
*/
if ( !empty($_ENV['USER_ID']) )
chown($path, getenv('USER_ID'));
chown($path, (int) getenv('USER_ID'));

if ( !empty($_ENV['GROUP_ID']) )
chgrp($path, getenv('GROUP_ID'));
chgrp($path, (int) getenv('GROUP_ID'));
}

/**
Expand Down

0 comments on commit 935bd05

Please sign in to comment.