隨遇而安

随遇而安
suíyù'ér'ān

to feel at home wherever one is; to accept the circumstances with good will

Wiktionary

Homographs

Entry Composition